Board index » delphi » Child window styles: Simulation of fsStayOnTop?
Stephan Schneider
![]() Delphi Developer |
Child window styles: Simulation of fsStayOnTop?2003-09-10 10:00:33 PM delphi162 Hallo, Env.: Delphi 6 Ent. UP2 In my application I have a MainForm, which is at runtime nearly always in maximed status. The user can open several child forms (like MDI, but it isn't a MDI). Now my problem: The FormStyle of the child form is fsNormal (and it should stay fsNormal), I'd simulate such a behaviour when FormStyle was set to fsStayOnTop. When I try it with ChildForm.FormStyle = fsStayOnTop it get some strange behaviour: I open a child window and it's over the main form, I open a second child window and it is over the main form, but under the first child window. How can I simulate such a behaviour with fsStayOnTop? What kind of window styles have I to use (override CreateParams)? I want that all opened child windows are over the main form (they are not hidden by the main form) and the focused child window is over all other child windows. Kind regards Stephan |