Canvas Focus

BlitzMax Forums/MaxGUI Module/Canvas Focus

TeraBit(Posted 2006) [#1]
Hi All,

Is there a way to detect if a canvas has Focus or not?

I tried debuglogging the Events but didn't see anything.

Basicly I am writing a custom gadget control that 'Greys out' when it loses focus.


Grisu(Posted 2006) [#2]
How about checking:

EVENT_MOUSEENTER - Mouse entered gadget area
EVENT_MOUSELEAVE - Mouse left gadget area

So when the user leaves the gadget you fade the image to grey.
If he re-enters it, turn on the colors?


fredborg(Posted 2006) [#3]
ActiveGadget() ?


TeraBit(Posted 2006) [#4]
ActiveGadget


That's so crazy it might just work =)

I'll just have to do a combination of ActiveGadget() and hooking events so that it can be fired to check.

Thanks!