Show/Hide Combobox List

Discuss GUI programming with the RapaGUI plugin here

Show/Hide Combobox List

Postby PEB » Tue Jan 30, 2018 4:54 am

Is there a method for the Combobox class that would allow me to show/hide the list (doing what the button does, but with a command)?
PEB
 
Posts: 161
Joined: Sun Feb 21, 2010 2:28 am

Re: Show/Hide Combobox List

Postby PEB » Tue Jan 30, 2018 6:06 am

What I'm trying to do is create a text entry widget that will display suggestions in a floating widget underneath it while the user is typing.

For this to work well, I might also need something like Combobox.Quiet (to turn on and off the refresh) added.

Or is there a better way to accomplish this?
PEB
 
Posts: 161
Joined: Sun Feb 21, 2010 2:28 am

Re: Show/Hide Combobox List

Postby SamuraiCrow » Tue Jan 30, 2018 3:41 pm

You could try wrapping it with a pageview gadget with the "none" mode to prevent it from forming tabs at the top.
SamuraiCrow
 
Posts: 120
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Show/Hide Combobox List

Postby PEB » Wed Jan 31, 2018 4:45 am

The pageview gadget would still take up room in the GUI when visible; so it would displace other parts of the GUI. The nice thing about the Combobox list is that it floats above the GUI without effecting the layout at all whether the list is shown or hidden.
PEB
 
Posts: 161
Joined: Sun Feb 21, 2010 2:28 am

Re: Show/Hide Combobox List

Postby airsoftsoftwair » Thu Feb 01, 2018 7:37 pm

It would be possible to implement methods for showing and hiding the combobox list but I'm not sure if this would be of any help because if you did it like that, you'd still need to embed a combobox widget below your text entry widget and this would look rather ugly so I'm not sure I understand how you want this to work.
User avatar
airsoftsoftwair
 
Posts: 2343
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to RapaGUI

Who is online

Users browsing this forum: No registered users and 1 guest