Components with Anchors property have old size in Form.OnResize event
Original Reporter info from Mantis: dvasoft
-
Reporter name:
Original Reporter info from Mantis: dvasoft
- Reporter name:
Description:
I have hidden form with the component on it. The component has Anchors property set to [akTop,akLeft,akRight,akBottom], so that it should be resized when form changes its size. Now I set new form height (Form2.Height := 500) and then make it visible (Form2.Show). But in the Form2's OnResize and OnShow events the component has old size, not new one.
As far as I know this bug is for hidden forms only. But it is not unusual to do something with hidden form before showing it, of course...
Additional information:
The uploaded archive contains test project that illustrates the bug. When you click "Button1" button it changes Form2 Height property and then show it. Form2 has handlers for events OnShow and OnResize where component height is shown. There must be value 500 here, but old value 281 is shown...
Mantis conversion info:
- Mantis ID: 14864
- Version: 0.9.28
- Fixed in version: 0.9.29 (SVN)
- Monitored by: » dvasoft (dvasoft)
- Target version: 1.0.0
- LazTarget: 1.0