mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 06:08:17 +02:00
LCL: TCustomTabControl: update images on DPI change
git-svn-id: branches/HiDPIImageList@57157 -
This commit is contained in:
parent
3616a087a8
commit
71b81a6c94
@ -428,6 +428,8 @@ type
|
||||
procedure SetImageListAsync(Data: PtrInt);
|
||||
protected
|
||||
PageClass: TCustomPageClass;
|
||||
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
|
||||
const AXProportion, AYProportion: Double); override;
|
||||
function GetPageClass: TCustomPageClass; virtual;
|
||||
function GetListClass: TNBBasePagesClass; virtual;
|
||||
procedure SetOptions(const AValue: TCTabControlOptions); virtual;
|
||||
|
@ -1057,6 +1057,19 @@ begin
|
||||
Result := destPage.DialogChar(Message);
|
||||
end;
|
||||
|
||||
procedure TCustomTabControl.DoAutoAdjustLayout(
|
||||
const AMode: TLayoutAdjustmentPolicy; const AXProportion,
|
||||
AYProportion: Double);
|
||||
begin
|
||||
inherited DoAutoAdjustLayout(AMode, AXProportion, AYProportion);
|
||||
|
||||
if AMode in [lapAutoAdjustWithoutHorizontalScrolling, lapAutoAdjustForDPI] then
|
||||
begin
|
||||
if Assigned(Images) then
|
||||
DoImageListChange(Self);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCustomTabControl.InternalSetPageIndex(AValue: Integer);
|
||||
begin
|
||||
FPageIndex := AValue;
|
||||
|
Loading…
Reference in New Issue
Block a user