Groupbox hides contained Label when Groupbox.Caption is changed
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
If a groupbox contains a label and the caption of the group box is changed at runtime the label is suddenly not visible any more.
This seems to be related to Windows since the behavior is correct under Ubuntu. The behavior is correct also in Delphi 7.
Steps to reproduce:
Run attached demo: the groupbox contains a TLabel, a TEdit and a TStaticText. Click on the button to change the caption of the groupbox. Afterwards the Label is no longer visible. The other controls are still visible.
Of course, a "GroupBox.Invalidate" or "Groupbox.Refresh" after changing the caption restores the label.