Event_MouseDown on a ComboBox?

BlitzMax Forums/BlitzMax Programming/Event_MouseDown on a ComboBox?

Gabriel(Posted 2006) [#1]
I can't seem to find a way to get an EVENT_MOUSEDOWN to register on ComboBoxes. I've searched the forum and all I could find was a generic fix for most/all gadgets which is seven months old, but I need something which won't break every time I syncmods. Particularly since MaxGUI is arguably the most often updated module.

Oh, and I also found a workaround involving putting it in a panel, but that apparently kills all other events to the gadget, making it pretty useless.

Any way around this or do I just have to wait and hope it gets added at some point?


skidracer(Posted 2006) [#2]
It depends, why do you need a mousedown event on a combo?


Gabriel(Posted 2006) [#3]
So that I can open a popup menu when the user right clicks on the gadget.

It's not vital to me whether it differentiates between an open combo box, a selected combo box, an empty combo box, etc or not. I'm just desperately trying to save screen space on a complicated app, and it seems like having all the options for items within the combo box on a right click menu is the best way to do that.


skidracer(Posted 2006) [#4]
Oh right button!

I'm certainly into adding EVENT_GADGETMENU events for all item based gadgets as listboxes already fire them.


Gabriel(Posted 2006) [#5]
Oh yeah, that'd be perfect.