oh, is see...
but i'm very interested to know which underlying runtime data are 
concerned... i have to dig in the Delphi code...
because if you can't change this property at runtime... you need some other 
Api functions...
like using setWindowsPos()...
the correct managment of top windows is a little dark for  me :-)

Thanks
Cédric

> Yes, with your sample code I managed to reproduce your problem.
> I suspect the problem is that fsStayOnTop is
> modifying some underlying Delphi runtime data
> structures and causing problems.  If I move
> "FormStyle := fsStayOnTop" to the OnCreate event, the form works fine.

> In fact, Delphi Help for "FormStyle property
> (TCustomForm)" says "Note: It is not advisable to
> change FormStyle at runtime.".  This leads me to
> think that FormStyle is a "delicate" property and
> you may need to rearrange the order of your code to get it to run 
> correctly.

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to