Disappearing controls
Original Reporter info from Mantis: Stephano
-
Reporter name:
Original Reporter info from Mantis: Stephano
- Reporter name:
Description:
Controls can disappear from forms and frames under some circumstances.
To reproduce:
- Install the attached package in the IDE. It installs a TStringGrid descendant with a property setter that calls Self.Canvas.TextWidth.
- Open the attached project.
- Select unit1.pas and press F12. The form with the TPageControl will appear with TabSheet1 active but empty (despite having a button on it and despite that ActivePage=TabSheet2). Switching tabs back and forth restores everything to normal.
- Select unit4.pas and press F12 to show the frame. An error message will popup:
Stream=TFrame2: Root=:TFrame2
Component Class: TNewGrid
Error reading NewGrid1.MyProperty: Control '' has no parent window
Stream position: 197
and the IDE log will show:
TWinControl.CreateWnd :TFrame2 Parent=nil ERROR WndParent=0
and the frame will not be displayed properly.
Mantis conversion info:
- Mantis ID: 25124
- OS: Ubuntu
- OS Build: 11.04
- Platform: i386