are window select events possible?
Im workin on a ui and am wanting to make some buttons the default buttons in various windows but i want the button to not be the default when the window containing the button isnt the active window.
if youve lost me already, say i make the 'find items' button in the market (broker) window the default button. whenever i press enter it will run a search. now i dont want this all the time, say i click some other window, the broker window is no longer the active window, yet when i press enter it still runs the search for items (aside from the chat window typing a message which sends message instead).
so basically, i was wanting to know if theres a way to have an event when the window isnt the active window or when it does become active. so i can have it set the find button to default when the window becomes active, and set it to not default when the window is no longer active. I know you can set the onhoverin and on hoverout events for when the mouse cursor is over and off the window, but thats not what im wanting.
i have a fear that this isnt possible, but before i gave up on it, i wanted to see if anyone else had any ideas.
|