You've already forked lazarus-ccr
ExCtrls: Fix high-dpi scaling of TCheckComboBoxEx.ButtonWidth.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8141 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -83,6 +83,8 @@ type
|
|||||||
procedure ButtonClick; override;
|
procedure ButtonClick; override;
|
||||||
procedure CloseUp;
|
procedure CloseUp;
|
||||||
procedure CreateHandle; override;
|
procedure CreateHandle; override;
|
||||||
|
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
|
||||||
|
const AXProportion, AYProportion: Double); override;
|
||||||
procedure DoEnter; override;
|
procedure DoEnter; override;
|
||||||
procedure DoChange; virtual;
|
procedure DoChange; virtual;
|
||||||
procedure DoItemChange(AIndex: Integer); virtual;
|
procedure DoItemChange(AIndex: Integer); virtual;
|
||||||
@ -569,6 +571,14 @@ begin
|
|||||||
Buddy.Width := GetSystemMetrics(SM_CXVSCROLL);
|
Buddy.Width := GetSystemMetrics(SM_CXVSCROLL);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCheckComboBoxEx.DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
|
||||||
|
const AXProportion, AYProportion: Double);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
if FButtonWidth < 0 then
|
||||||
|
Buddy.Width := GetSystemMetrics(SM_CXVSCROLL);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TCheckComboBoxEx.DoChange;
|
procedure TCheckComboBoxEx.DoChange;
|
||||||
begin
|
begin
|
||||||
if Assigned(FOnChange) then FOnChange(self);
|
if Assigned(FOnChange) then FOnChange(self);
|
||||||
|
Reference in New Issue
Block a user