Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making a modeless form?

Status
Not open for further replies.

Neil Toulouse

Programmer
Mar 18, 2002
882
GB
Hi guys!

Sorry if this sounds like a really stupid/obvious question but what properties do you set to make a form modeless and always appear on top of other forms?

Basically, I have a popup form with some info on which I need to hang about the screen until the user no longer needs it (WindowType=0 ?) and to always be on top of the other forms (AlwaysOnTop=.T. ?).

For whatever reason, the form is opening as modal and always on the bottom, no matter what I set!

Before I tear the form class to shreds, are there any other properties I need to consider?

Ta
Neil

I like work. It fascinates me. I can sit and look at it for hours...
 
If you want to set a window on top then the WINDOWTYPE = 1 - MODAL will pout it on top.

Mark Davies
Warwickshire County Council
 
I need it on top but not modal!

I like work. It fascinates me. I can sit and look at it for hours...
 
Have just set it as a 'top level form' and now appears to work as expected!

Problem solved :)

Neil


I like work. It fascinates me. I can sit and look at it for hours...
 
I've not tried it with a class but just with two simple forms the one with AlwaysOnTop=.T. always stays on top. It's modeless and I can slide the other form around behind it but the AlwaysOnTop form always stays on top.

What if you try a double whammy and set the other forms to AlwaysOnBottom = .T.?

Geoff Franklin
 
Hi Geoff!

Thanks for your input! I think you may have something there with the AlwaysOnBottom. I believe the issue is with something to do with how this form interacts with the other forms opened via the form manager class I am using.

Anyway, It isn't important enough for me to spend the time stripping down the form manager class, so I will stick with the topLevelForm solution for now!

Neil

I like work. It fascinates me. I can sit and look at it for hours...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top