| Sometimes when developing applications you want your window to stay on
top of all other windows. One way to achieve this is to declare an API call, but
PowerBuilder has support for this built in. If at all possible it is best not to go
directly to an API call as is makes your application platform specific.
Anyway, there is a method of the window object, SetPosition() which takes
an enumerated datatype of TopMost! or NoTopMost!.
If you call the function with TopMost! then your window will always be on top of all
other windows in the system. Calling the function with NoTopMost! will return the window
back into the normal layering of windows. |