Windows procedure SetWRect not working correctly on Windows
Andis Blicāns, Grasko
7-18-24
Operating system: Windows
Hi,

I think this has been for decades in HAL. Or may be I do not understand properly something.
So decided to ask here.
HAL primitive description on web says:

procedure SetWRect(integer x,integer y,integer w,integer h)

Description:
sets size and location for window

Parameters:
x    left upper corner - horisontal coordinate
y    left upper corner - vertical coordinate
w    width of window
h    height of window

When I try to change x, y coordinates, then left upper corner is not changing it's possition.
Instead the window size is changing in some strange way.
Even with AutoSizeWindow(false) the left upper corner position can not be changed.
Andis Blicāns, Grasko
7-18-24
The above applies to the window when it is opened for the first time. If the window is already open and I choose Window/Restore Position, the window takes the correct position. Namely, the upper left corner is located in the correct x,y coordinates.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Ibrahim Bashir
Hello, System >> Settings >> Optional Features >> Idle User Timeout (Minutes) this is configured to 15 minutes in my setup. is there a way to make this works per user? or skip s...
04:56 29 Nov 2024
Reino Botha
Please check your version of android if it is the same as the server you are connecting too. ...
08:24 21 Nov 2024