Form set bsDialog cannot be resized under program control after first ShowModal.
Original Reporter info from Mantis: MarkMLl @MarkMLl
-
Reporter name: Mark Morgan Lloyd
Original Reporter info from Mantis: MarkMLl @MarkMLl
- Reporter name: Mark Morgan Lloyd
Description:
A form set bsDialog at design time can have its size etc. adjusted under program control, but the displayed size is locked after a ShowModal.
The Width and Height properties reflect what has been written to them, but the size of the form is locked to what it was when ShowModal was first called.
The content of the form tracks the displayed dimensions erratically. The attached test project has a contained PageControl apparently tracking the displayed dimension, but the project where I hit this problem was making a mess of it (insufficient space to display the tabs and/or content truncated).
Steps to reproduce:
Test project attached.
Additional information:
I suspect that part of my problem was that I was trying to fit a form around its content, so there was feedback from the required dimensions to the ones I was trying to set. The test project should always display the bevel associated with Form2.Panel2 correctly.
Mantis conversion info:
- Mantis ID: 25035
- OS: Linux, gtk2
- OS Build: Debian "Squeeze"
- Platform: x86
- Version: 1.0.0
- Fixed in revision: 50037 (#3bf53901)
- Monitored by: » @flyingsheep (Bart Broersma)