Keeping Dialog Boxes on Top Using VCL


2005-11-02 03:34:27 PM
cppbuilder38
Hi,
I'd like to use the VCL to perform the following:
1) Show Form1 at the start of the application
2) Show Form2 and always keep it on top of Form1.
3) While Form 1 and Form2 are shown, display a message box using
Application->MessageBox() in front of both Forms 1 and 2.
I've tried several combinations of using the following functions
without success:
a) ShowModal()
b) NormalizeAllTopMosts()
c) TForm->FormStyle = fsStayOnTop
I'd prefer to use the VCL rather than the Windows API to do this. How
can I do this? Thank you.
Greg