I am making a wxWidgets desktop application. I have a combobox with filter categories, a…
- User
I am making a wxWidgets desktop application. I have a combobox with filter categories, a listbox with filter elements of the filter categories, and a grid with the data. The comobox select a filter category which updates the filter elements in the listbox and clicking an element in the listbox it filters the data in the grid. The question I have is the way to design it, I want to add a white or empty filter that disables the filter, but this can be added as the first element of both the combobox abd the listbox. Which one is the correct or best way to do it? How is it commonly done in other applications?
- Assistant
The best way to handle this situation is to add the white or empty filter as the first element in both the combobox and the listbox. This is a common practice in many applications and it provides a clear indication to the user that this option will disable the filter.
Here's how you can do it in wxWidgets:
- Add the white or empty filter as the first item in the combobox:
cpp
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.