mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 14:18:17 +02:00
LCL: TSpeedButton, TBitBtn: fix autosize on image* change. Issue #33645
git-svn-id: trunk@57705 -
This commit is contained in:
parent
2ef8957cd8
commit
e5e905ef3e
@ -175,11 +175,15 @@ begin
|
||||
FButtonGlyph.ExternalImages.FreeNotification(Self);
|
||||
FButtonGlyph.ExternalImages.RegisterChanges(FImageChangeLink);
|
||||
end;
|
||||
InvalidatePreferredSize;
|
||||
AdjustSize;
|
||||
end;
|
||||
|
||||
procedure TCustomBitBtn.SetImageWidth(const aImageWidth: Integer);
|
||||
begin
|
||||
FButtonGlyph.ExternalImageWidth := aImageWidth;
|
||||
InvalidatePreferredSize;
|
||||
AdjustSize;
|
||||
end;
|
||||
|
||||
procedure TCustomBitBtn.GlyphChanged(Sender: TObject);
|
||||
|
@ -229,11 +229,15 @@ begin
|
||||
FGlyph.ExternalImages.FreeNotification(Self);
|
||||
FGlyph.ExternalImages.RegisterChanges(FImageChangeLink);
|
||||
end;
|
||||
InvalidatePreferredSize;
|
||||
AdjustSize;
|
||||
end;
|
||||
|
||||
procedure TCustomSpeedButton.SetImageWidth(const aImageWidth: Integer);
|
||||
begin
|
||||
FGlyph.ExternalImageWidth := aImageWidth;
|
||||
InvalidatePreferredSize;
|
||||
AdjustSize;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user