Changing a Forms order

Started by Petrus Vorster, July 05, 2014, 02:08:06 AM

Previous topic - Next topic

Petrus Vorster

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!
-Regards
Peter

Eddy Van Esch


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
Eddy

Petrus Vorster

-Regards
Peter