dcop Posted May 31, 2007 Share Posted May 31, 2007 I have a small function that fires off with a GUISetOnEvent that writes the window position to a ini file after drag my GUI going off the $GUI_EVENT_PRIMARYUP. Then the next time I open my GUI it reads the ini and sets the position of the window to that position. It works fine. The issue I'm having is that when I click on the tray Icon it also records it but as -32000,-32000. As you may be able to tell it puts it off the desktop. Anywhere you can point me to not have the tray Icon respond to the GUISetOnEvent other than notrayicon would be appreciated. TIA Dennis Link to comment Share on other sites More sharing options...
smashly Posted May 31, 2007 Share Posted May 31, 2007 Hi, Probly more then one way to do it.. Maybe you could try setting a condition inside your $GUI_EVENT_PRIMARYUP function.. eg: Opt("GUICoordMode", 1) and GUIGetCursorInfo() , if the cursor is in the area of the systray then skip the write to ini, if the cursor is reletive to the Gui then write to the ini. You provided no code so I'm not game to try and give it a crack at an example. Cheers Link to comment Share on other sites More sharing options...
dcop Posted May 31, 2007 Author Share Posted May 31, 2007 Hi,Probly more then one way to do it..Maybe you could try setting a condition inside your $GUI_EVENT_PRIMARYUP function..eg: Opt("GUICoordMode", 1) and GUIGetCursorInfo() , if the cursor is in the area of the systray then skip the write to ini, if the cursor is reletive to the Gui then write to the ini.You provided no code so I'm not game to try and give it a crack at an example.CheersGreat!! GUIGetCursorInfo() condition will work great. Missed that in the docs. Thanx Smashly! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now