Tweak for proper combobox event handling

BlitzMax Forums/MaxGUI Module/Tweak for proper combobox event handling

skn3(Posted 2011) [#1]
I have made a tweak for the maxgui combo box event handling. The tweak should be backwards compatible with old maxgui behaviour. The tweak allows:

- Gadget lost event on combobox
- EVENT_GADGETACTION mods field now is false for an updating change and true for an updated change

What this means if a user opens a combobox ... browsers around with keyboard and then clicks/hits return .. the final EVENT_GADGETACTION will have a mods True and all other previous EVENT_GADGETACTION mods false.

So if you want to only capture a combobox change when its a final change, look for mods = True. Useful for processing something upon selection instead of on change.

win32maxguiex.bmx
Replace your old TWindowsComboBox type with this


I'll get a macOS version done soon!

Last edited 2011


Impi(Posted 2011) [#2]
Thanks a lot. Exactly what I need.