TControl descendant are moved before TWinControl descendants when ChildSizing.Layout <> cclNone
Original Reporter info from Mantis: ssamayoa
-
Reporter name: Sergio Samayoa
Original Reporter info from Mantis: ssamayoa
- Reporter name: Sergio Samayoa
Description:
TControl descendant are moved before TWinControl descendants when ChildSizing.Layout <> cclNone.
To reproduce:
- Create a form.
- Add a panel.
- Set ChildSizing.Layout to cclLeftToRightThenTopToBottom.
- Add TEdit.
- Add another TEdit.
- Add TLabel. The new TLabel will be positioned before the previous TEdit controls.
Additional information:
The problems is because TWinControl.Control [] property (TWinControl.GetControl method) allways returns TControl descendants before TWinControl descendants. This is because there is two List components, one for TControl desdendats and other for TWinControl descendats. Solving this bug requires a major TWinControl review and testing.
Mantis conversion info:
- Mantis ID: 10703
- Version: 0.9.24
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 21707 (#313244d6)
- Monitored by: » ssamayoa (Sergio Samayoa)
- Target version: 1.0.0
- LazTarget: 1.0