GadgetY() and Disable WINDOW_CLIENTCOORDS?

BlitzMax Forums/MaxGUI Module/GadgetY() and Disable WINDOW_CLIENTCOORDS?

Grisu(Posted 2014) [#1]
Hello,

in my app I have to use the WINDOW_CLIENTCOORDS flag for the main window. Nevertheless I need to get the absolute Y position of the main window in order to see if it's no longer visible on the desktop.

Example: *with solution*


If the changed window size is out of the desktop view, the window has to be resized downwards. If not, it will increase in size (default).

For Windows 8.11 I need to add 31 pixels to the results on my system. But the code has to work multiplatform.

Is there a way to disable the WINDOW_CLIENTCOORDS for a brief call, so GagdetY() returns "0" when the top of the desktop has been reached?

Grisu


Henri(Posted 2014) [#2]
Hello again,

to disable WINDOW_CLIENTCOORDS use:
MainWindow.style:~ WINDOW_CLIENTCOORDS

to enable use:
MainWindow.style:| WINDOW_CLIENTCOORDS


-Henri


Grisu(Posted 2014) [#3]
That was as simple as it should be. ;) Thanks.. again.

P.S. I added the updated example to the first post.