mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-09 08:56:02 +02:00
LCL: Set icons for tabs in TTabControl from the Images property. Issue #23068.
This commit is contained in:
parent
99aa02f484
commit
e4dc3ff90f
@ -412,7 +412,7 @@ type
|
||||
procedure PageRemoved(Index: Integer);
|
||||
procedure SetActivePage(const Value: String);
|
||||
procedure SetActivePageComponent(const AValue: TCustomPage);
|
||||
procedure SetImages(const AValue: TCustomImageList);
|
||||
procedure SetImages(const AValue: TCustomImageList); virtual;
|
||||
procedure SetImagesWidth(const aImagesWidth: Integer);
|
||||
procedure SetPageIndex(AValue: Integer);
|
||||
procedure SetPages(AValue: TStrings);
|
||||
@ -814,7 +814,7 @@ type
|
||||
function GetTabRectWithBorder: TRect;
|
||||
function GetTabStop: Boolean;
|
||||
procedure SetHotTrack(const AValue: Boolean);
|
||||
procedure SetImages(const AValue: TCustomImageList);
|
||||
procedure SetImages(const AValue: TCustomImageList); override;
|
||||
procedure SetMultiLine(const AValue: Boolean);
|
||||
procedure SetMultiSelect(const AValue: Boolean);
|
||||
procedure SetOwnerDraw(const AValue: Boolean);
|
||||
|
@ -498,11 +498,7 @@ end;
|
||||
procedure TTabControl.SetImages(const AValue: TCustomImageList);
|
||||
begin
|
||||
if FImages = AValue then Exit;
|
||||
if FImages <> nil then
|
||||
FImages.RemoveFreeNotification(Self);
|
||||
FImages := TImageList(AValue);
|
||||
if FImages <> nil then
|
||||
FImages.FreeNotification(Self);
|
||||
inherited SetImages(AValue);
|
||||
TTabControlStrings(FTabs).Images := FImages;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user