Sign in to follow this  
Followers 0
dcop

$GUI_EVENT_PRIMARYUP

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Great!! GUIGetCursorInfo() condition will work great. Missed that in the docs. Thanx Smashly!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0