[SOLVED] BoundsChanged to resize only when width and height changes lazarus / 31-LCL ---------------------------------------------------------------------- lainz · 2011-10-02 19:52 I've bitmaps that need to be resized when BoundsChanged but ONLY if Width and Height changes. (not when Left and Top). There is a way? Currently I have: Code: [Select]procedure TBGRAImageButton.BoundsChanged; begin   { TODO -oLainz : Update ONLY when Width or Height changes }   UpdateBmp;   UpdateTxt; end; The code is here: http://bgracontrols.git.sourceforge.net/git/gitweb.cgi?p=bgracontrols/ bgracontrols;a=blob_plain;f=bgraimagebutton.pas ---------------------------------------------------------------------- typo · 2011-10-02 22:39 Apparently you must override TControl.ChangeBounds or TControl.SetBounds. ---------------------------------------------------------------------- lainz · 2011-10-05 22:24 Apparently if the parent is changed the child must change anyway or viceversa.