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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

D4: fsNormal to fsMDIForm loses controls

Status
Not open for further replies.

mkudra

Programmer
Jun 5, 2000
5
US
Changing a working form's style from fsNormal to fsMDIForm cause the disappearance of existing controls (e.g. SpeedButtons).<br><br>Seems so familiar, but cannot locate in books/FAQs/TIs on hand ...
 
Eeeeeuhm... You're NOT supposed to change the FormStyle property at runtime!!!
 
Did not state at runtime, did not change at runtime, but under Property Inspector at design time ...<br><br>Controls show on form designer, do not show on form at runtime ....
 
And stranger still, the hint balloon appears at run time when hovering over where the control is located at design time, and clicking that area activates the button ...
 
Never mind - placed a TPanel under the SpeedButtons, and they show now.&nbsp;&nbsp;TButtons never disappeared ....
 
Speedbuttons were on top of form, no other components were over/underlaid, form was owner & parent ...<br><br>Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top