How to know when my control changes size?

Posted by Mason Wheeler on Stack Overflow See other posts from Stack Overflow or by Mason Wheeler
Published on 2010-05-08T03:39:21Z Indexed on 2010/05/08 3:48 UTC
Read the original article Hit count: 303

Filed under:
|

I'm building a custom control, and I need it to be able to respond when it gets resized. I need the old dimensions and the new dimensions available in order to do some calculations.

Unfortunately, the SetWidth and SetHeight methods are private to TControl, not protected, and so I can't override them. Is there any other way to know that my control's about to be resized, and to have the old size and the new size both available?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about custom-controls