mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 15:38:20 +02:00
LCL: Revert 0c285d6eb9
(fixes issue #39861).
This commit is contained in:
parent
b75a7c1e81
commit
7950515229
@ -92,7 +92,6 @@ type
|
||||
AlignInfo: TAlignInfo); override;
|
||||
procedure CalculatePreferredSize(var PreferredWidth,
|
||||
PreferredHeight: integer; WithThemeSpace: Boolean); override;
|
||||
procedure Loaded; override;
|
||||
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
|
||||
procedure SetAlign(Value: TAlign); override;
|
||||
procedure CMAppShowBtnGlyphChanged(var Message: TLMessage); message CM_APPSHOWBTNGLYPHCHANGED;
|
||||
@ -486,12 +485,6 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCustomButtonPanel.Loaded;
|
||||
begin
|
||||
inherited;
|
||||
DoShowGlyphs;
|
||||
end;
|
||||
|
||||
procedure TCustomButtonPanel.Notification(AComponent: TComponent;
|
||||
Operation: TOperation);
|
||||
var
|
||||
|
@ -315,17 +315,7 @@ begin
|
||||
idButton := BitBtnImages[Kind];
|
||||
if (idButton >= Low(BitBtnResNames)) and (idButton <= High(BitBtnResNames))
|
||||
and (BitBtnResNames[idButton] <> '') then
|
||||
begin
|
||||
FButtonGlyph.LCLGlyphName := BitBtnResNames[idButton];
|
||||
CustomGlyph := GetLCLDefaultBtnGlyph(Kind);
|
||||
try
|
||||
if not Assigned(Glyph) then
|
||||
Glyph := TBitmap.Create;
|
||||
Glyph.Assign(CustomGlyph);
|
||||
finally
|
||||
CustomGlyph.Free;
|
||||
end;
|
||||
end
|
||||
FButtonGlyph.LCLGlyphName := BitBtnResNames[idButton]
|
||||
else
|
||||
ImageIndex := -1;
|
||||
GlyphValid := True;
|
||||
|
Loading…
Reference in New Issue
Block a user