PlanetSquires Forums

Support Forums => General Board => Topic started by: Petrus Vorster on July 05, 2014, 02:08:06 AM

Title: Changing a Forms order
Post by: Petrus Vorster on July 05, 2014, 02:08:06 AM
I need to make a form remains in top position order, but only when i need it too.
In other words, i want to place a checkbox on it and when selected the form must remain on top of all forms in Windows.
If not, then it must join the Windows order.

In .Net it was something like Topmost = true (or in that line) but i have no idea how you do it here.
Its just a little search tool to compare Mail Tracking numbers in my database, but staying on top is sometimes annoying (or again having to dig for your app if you have like 10 things open in a workday!)

Will appreciate some ideas!
Title: Re: Changing a Forms order
Post by: Eddy Van Esch on July 05, 2014, 04:30:11 AM

SETWINDOWPOS hFormHandle, %HWND_TOPMOST,0,0,0,0,%SWP_NOMOVE OR %SWP_NOSIZE
or
SETWINDOWPOS hFormHandle, %HWND_NOTOPMOST,0,0,0,0,%SWP_NOMOVE OR %SWP_NOSIZE
Title: Re: Changing a Forms order
Post by: Petrus Vorster on July 05, 2014, 04:33:35 AM
Thanks Eddy

So simple...