For each of your forms, set the FormStyle in the form designer to fsStayOnTop.
Note that messing with this property while your app is running may have unpredictable effects -- sometimes your app may fail to stay on top -- so set it at design time. -- Doug Burbidge mailto:dougburbidge@yahoo.com
Sure. Mine is the Delphi VCL way; yours is the Windows API way.
Using Delphi's Visual component library is often shorter and more readable; but it may not give you as much control as a Windows API call, and there are some things you just can't do through the VCL, which means that you've got no choice but to go through the Windows API.
Windows API calls are portable to other languages under Windows (e.g., Visual Basic, C++, whatever), but Delphi VCL objects, methods etc. are more likely to be easily portable to Kylix. But in the here'n'now, if it works for you, it's good. -- Doug Burbidge mailto:dougburbidge@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.