EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 06-21-2005, 10:44 AM
qubit qubit is offline
A Young Mystail Rat
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 6
Default 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.
Reply With Quote
  #2  
Unread 06-22-2005, 02:25 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Its sorta possible...

First off, the IsDefualt and IsCancel properties are captured by the top most window that uses those properties. So if you've got another window in focus that uses IsDefault, the IsDefault property on your Market window will be blocked. The thing is alot of windows don't use the IsDefault property for anything. You'd need to apply it to something in all the common windows to get the behavior you're looking for.

Alternatively, you can set a pair of OnMouseIn/Out events for the Market window that sets the IsDefalut property to True/False. This would make it so the IsDefault only works while the mouse is over the Market window.
Reply With Quote
  #3  
Unread 06-22-2005, 09:34 PM
qubit qubit is offline
A Young Mystail Rat
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 6
Default

ya, i know about the onhoverin onhoverout and having them set isdefaultbutton, but thats not a very good way of doing it, and i'd rather not have it set as default than have it coded very sloppily, prefer to keep things orderly.

I had also considered adding a size=0,0 button with isdefault to every single window, but thats also borderline sloppy.

so i guess until a nicer solution presents itself, i'll just do without isdefault for now. thanks for tryin though.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:10 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI