mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-19 15:08:31 +02:00
LCL: Restore Handle to TCustomImageList.
This commit is contained in:
parent
7716068e1a
commit
c7c643a472
@ -291,6 +291,7 @@ type
|
|||||||
procedure SetMasked(const AValue: boolean);
|
procedure SetMasked(const AValue: boolean);
|
||||||
procedure SetShareImages(const AValue: Boolean);
|
procedure SetShareImages(const AValue: Boolean);
|
||||||
procedure SetWidth(const Value: Integer);
|
procedure SetWidth(const Value: Integer);
|
||||||
|
function GetHandle: TLCLHandle;
|
||||||
function GetReference(AImageWidth: Integer): TWSCustomImageListReference;
|
function GetReference(AImageWidth: Integer): TWSCustomImageListReference;
|
||||||
function GetReferenceForPPI(AImageWidth, APPI: Integer): TWSCustomImageListReference;
|
function GetReferenceForPPI(AImageWidth, APPI: Integer): TWSCustomImageListReference;
|
||||||
function GetResolutionForPPI(AImageWidth, APPI: Integer;
|
function GetResolutionForPPI(AImageWidth, APPI: Integer;
|
||||||
@ -401,6 +402,7 @@ type
|
|||||||
property BkColor: TColor read FBkColor write SetBkColor default clNone;
|
property BkColor: TColor read FBkColor write SetBkColor default clNone;
|
||||||
property Count: Integer read GetCount;
|
property Count: Integer read GetCount;
|
||||||
property DrawingStyle: TDrawingStyle read FDrawingStyle write SetDrawingStyle default dsNormal;
|
property DrawingStyle: TDrawingStyle read FDrawingStyle write SetDrawingStyle default dsNormal;
|
||||||
|
property Handle: TLCLHandle read GetHandle;
|
||||||
property Height: Integer read FHeight write SetHeight default 16;
|
property Height: Integer read FHeight write SetHeight default 16;
|
||||||
property HeightForPPI[AImageWidth, APPI: Integer]: Integer read GetHeightForPPI;
|
property HeightForPPI[AImageWidth, APPI: Integer]: Integer read GetHeightForPPI;
|
||||||
property HeightForWidth[AWidth: Integer]: Integer read GetHeightForWidth;
|
property HeightForWidth[AWidth: Integer]: Integer read GetHeightForWidth;
|
||||||
|
@ -2174,6 +2174,11 @@ begin
|
|||||||
for nIndex := 0 to Count - 1 do TChangeLink(Items[nIndex]).Change
|
for nIndex := 0 to Count - 1 do TChangeLink(Items[nIndex]).Change
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TCustomImageList.GetHandle: TLCLHandle;
|
||||||
|
begin
|
||||||
|
Result := ResolutionByIndex[0].Reference.Handle;
|
||||||
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
Method: TCustomImageList.WriteDefData
|
Method: TCustomImageList.WriteDefData
|
||||||
Params: AStream: The stream to write the data to
|
Params: AStream: The stream to write the data to
|
||||||
|
Loading…
Reference in New Issue
Block a user