mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 13:39:24 +02:00
parent
146fafd05b
commit
fb53b10290
@ -85,6 +85,20 @@ begin
|
||||
inherited DestroyWnd;
|
||||
end;
|
||||
|
||||
procedure TCustomComboBox.DoAutoAdjustLayout(
|
||||
const AMode: TLayoutAdjustmentPolicy; const AXProportion, AYProportion: Double
|
||||
);
|
||||
begin
|
||||
inherited;
|
||||
|
||||
if AMode in [lapAutoAdjustWithoutHorizontalScrolling, lapAutoAdjustForDPI] then
|
||||
begin
|
||||
if (Style in [csOwnerDrawFixed, csOwnerDrawVariable])
|
||||
and (FItemHeight > 0) then
|
||||
ItemHeight := Round(ItemHeight * AYProportion);
|
||||
end;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
procedure TCustomComboBox.DrawItem(Index: Integer; Rect: TRect;
|
||||
State: TOwnerDrawState);
|
||||
|
@ -325,6 +325,8 @@ type
|
||||
procedure SetItems(const Value: TStrings); virtual;
|
||||
procedure CloseUp; virtual;
|
||||
procedure AdjustDropDown; virtual;
|
||||
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
|
||||
const AXProportion, AYProportion: Double); override;
|
||||
|
||||
function GetItemCount: Integer; //override;
|
||||
function GetItemHeight: Integer; virtual;
|
||||
|
Loading…
Reference in New Issue
Block a user