in the middle of the application is a frame. After resizing i need to rearrange controls on this panel (doing this in the resizing event is too busy).
Its more useful if this can be done once after all the resizing. But how?
Thank you for your help
delphionresizetframe
in the middle of the application is a frame. After resizing i need to rearrange controls on this panel (doing this in the resizing event is too busy).
Its more useful if this can be done once after all the resizing. But how?
Thank you for your help
Best Answer
The trick is to hook into message processing of the parent form (proof-of-concept code, tested with Delphi 2009, error and corner case handling need more work):
Note that the messages are sent whenever a secondary message loop for moving / sizing has been started or left - there is no way to distinguish between moving and sizing. If you need to make sure that you catch sizing only, you should compare old and new size of the frame in the handler.