Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Combo-box widget #120

Open
axieum opened this issue Jul 2, 2021 · 1 comment
Open

Add Combo-box widget #120

axieum opened this issue Jul 2, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@axieum
Copy link

axieum commented Jul 2, 2021

Describe the solution you'd like
The addition of a new Combo box widget.

Additionally, I would like a way to customise the dropdown components, e.g. to add an icon next to each item.

Additional context
Windows Run dialog -
image

Combo box example -
image

Autocomplete example -
image

@axieum axieum added the enhancement New feature or request label Jul 2, 2021
@tmudway
Copy link

tmudway commented Mar 9, 2024

I looked into this somewhat and the core issue preventing easy implementation is how the onClick triggers are hooked up.

The instant that a combobox dropdown exits the bounds of its parent panel, it no longer registers mouse input. The workaround I'm using for this is to just forgo mouse input and instead use up/down arrow keys to select an option, with the list filtering based on the contents of the central WTextField widget. This ends up sorta like how autofill works in the vanilla minecraft chatbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants