Chooser with big list of options

6 posts / 0 new
Last post
walkero
walkero's picture
Offline
Last seen: 3 months 2 days ago
Joined: 2009-05-03 16:54
Chooser with big list of options

Hello guys. Working on the MediaVault (https://github.com/walkero-gr/mediavault) I need to have a long list of Countries and languages for the users to choose from. Unfortunately, the chooser seems that it doesn't have a way to show an internal scrollbar, and so many options are not possible to show up.

I was thinking to have sub choosers, but that seems also not possible with chooser. Then I thought to use popup menus with submenus, which could be useful and solve the problem.

I wonder what would you recommend as a better solution for this.

Thank you guys for your help.

trixie
trixie's picture
Offline
Last seen: 5 months 9 hours ago
Joined: 2011-02-03 13:58
Re: Chooser with big list of options

@walkero

I would use a pop-up window with a ListBrowser Gadget in it. If you need sub-lists (for example, to categorize things), you can do that via hierarchical nodes (which the ListBrowser supports, unlike A-EON's ListViewer).

AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2

walkero
walkero's picture
Offline
Last seen: 3 months 2 days ago
Joined: 2009-05-03 16:54
Re: Chooser with big list of options

@trixie
Thanks for your reply. When you say a popup window you mean a plain window with no borders, right? Or something else? Is similar to what the OS4 shell does on auto completion popup? If yes, that would be nice to have.

Not really necessary to have submenus, unless this is absolutely necessary.

Any example available?

trixie
trixie's picture
Offline
Last seen: 5 months 9 hours ago
Joined: 2011-02-03 13:58
Re: Chooser with big list of options

@walkero

When you say a popup window you mean a plain window with no borders, right? Or something else? Is similar to what the OS4 shell does on auto completion popup?

Yes, something like that. But unfortunately I have no example at hand: maybe Thomas Rapp has done something like that?

AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2

thomas
thomas's picture
Offline
Last seen: 12 hours 22 min ago
Joined: 2011-05-16 14:23
Re: Chooser with big list of options

Well, I didn't have one, but I made one just for you :)

http://thomas-rapp.homepage.t-online.de/examples/bigchooser.c

walkero
walkero's picture
Offline
Last seen: 3 months 2 days ago
Joined: 2009-05-03 16:54
Re: Chooser with big list of options

Thank you so much thomas. You are awesome...
I will check it and if I have questions I will get back to you...

Log in or register to post comments