Show/Hide Combobox List

Discuss GUI programming with the RapaGUI plugin here
Post Reply
PEB
Posts: 187
Joined: Sun Feb 21, 2010 1:28 am

Show/Hide Combobox List

Post by PEB » Tue Jan 30, 2018 3: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: 187
Joined: Sun Feb 21, 2010 1:28 am

Re: Show/Hide Combobox List

Post by PEB » Tue Jan 30, 2018 5: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?

SamuraiCrow
Posts: 179
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Show/Hide Combobox List

Post by SamuraiCrow » Tue Jan 30, 2018 2:41 pm

You could try wrapping it with a pageview gadget with the "none" mode to prevent it from forming tabs at the top.

PEB
Posts: 187
Joined: Sun Feb 21, 2010 1:28 am

Re: Show/Hide Combobox List

Post by PEB » Wed Jan 31, 2018 3: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.

User avatar
airsoftsoftwair
Posts: 2662
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Show/Hide Combobox List

Post by airsoftsoftwair » Thu Feb 01, 2018 6: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.

Post Reply