mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 17:17:52 +02:00
LCL: Make the initial height of ToggleBox match with Button. Issue #30536, patch from Alexey Torgashin.
git-svn-id: trunk@52961 -
This commit is contained in:
parent
c3bce1ccfe
commit
cdd2334167
@ -16,6 +16,12 @@ begin
|
||||
RegisterToggleBox;
|
||||
end;
|
||||
|
||||
class function TToggleBox.GetControlClassDefaultSize: TSize;
|
||||
begin
|
||||
//Use TButton's size
|
||||
Result := TButton.GetControlClassDefaultSize;
|
||||
end;
|
||||
|
||||
procedure TToggleBox.CreateParams(var Params: TCreateParams);
|
||||
begin
|
||||
inherited CreateParams(Params);
|
||||
|
@ -1341,6 +1341,7 @@ type
|
||||
TToggleBox = class(TCustomCheckBox)
|
||||
protected
|
||||
class procedure WSRegisterClass; override;
|
||||
class function GetControlClassDefaultSize: TSize; override;
|
||||
procedure CreateParams(var Params: TCreateParams); override;
|
||||
property ParentColor default false;
|
||||
public
|
||||
|
Loading…
Reference in New Issue
Block a user