TButton can not be used as Parent in certain cases (different to Dlphi)
Original Reporter info from Mantis: KOWI
-
Reporter name:
Original Reporter info from Mantis: KOWI
- Reporter name:
Description:
TButton can not be used as parent of TShape (in Delphi/Rio it can).
TButton can not be used as parent of TTrackbar.
Documentation about reason and limits missing resp. not to be found easily.
Steps to reproduce:
Button1 := TButton.Create (self);
Shape1 := TShape.Create (Button1);
Shape1.Parent := Button1;
or
Button1 := TButton.Create (self);
Trackbar1 := TTrackbar.Create (Button1);
Trackbar1.Parent := Button1;
e. g. in FormCreate
Mantis conversion info:
- Mantis ID: 35643
- OS: Windows 10
- OS Build: Home
- Build: 60954
- Platform: Windows
- Version: 2.0.2