EVENT_GADGETACTIVATE?

BlitzMax Forums/MaxGUI Module/EVENT_GADGETACTIVATE?

ima747(Posted 2010) [#1]
is there an event for detecting when a gadget activates? you can detect a window activating with EVENT_WINDOWACTIVATE and it seems like there's an event for when a gadget deactivates with EVENT_GADGETLOSTFOCUS, but I can't find a way to tell when the user clicks in a text field so I can toggle the cut/copy/paste menu items...


degac(Posted 2010) [#2]
Try with SetGadgetSensitivity . with textfield works.


ima747(Posted 2010) [#3]
SetGadgetSensitivity would be a likely passable workaround, but it's not quite the same, as I don't think it will detect when a user tabs into a field, I could only detect if they click the field to activate it.

Another workaround would be watching for gadget lost focus events, and then treating it as a gadget got focus on the activegadget, but if the user clicks off of a gadget then I'll get a lost but no new active, so when they do activate something I'd have to track the clicks still, and I'd still miss tabbing into the first field from no active...

Perhaps I should go rummage through the maxgui source...