mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-21 00:26:43 +02:00
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
{%MainUnit ../stdctrls.pp}
|
|
{
|
|
*****************************************************************************
|
|
This file is part of the Lazarus Component Library (LCL)
|
|
|
|
See the file COPYING.modifiedLGPL.txt, included in this distribution,
|
|
for details about the license.
|
|
*****************************************************************************
|
|
}
|
|
|
|
class procedure TCustomGroupBox.WSRegisterClass;
|
|
begin
|
|
inherited WSRegisterClass;
|
|
RegisterCustomGroupBox;
|
|
end;
|
|
|
|
class function TCustomGroupBox.GetControlClassDefaultSize: TSize;
|
|
begin
|
|
Result.CX := 185;
|
|
Result.CY := 105;
|
|
end;
|
|
|
|
procedure TCustomGroupBox.CreateParams(var Params: TCreateParams);
|
|
begin
|
|
inherited CreateParams(Params);
|
|
Params.Style := Params.Style or BS_GROUPBOX;
|
|
end;
|
|
|
|
{------------------------------------------------------------------------------
|
|
function TCustomGroupBox.Create
|
|
------------------------------------------------------------------------------}
|
|
constructor TCustomGroupBox.Create(AOwner: TComponent);
|
|
begin
|
|
inherited Create(AOwner);
|
|
fCompStyle := csGroupBox;
|
|
ControlStyle := ControlStyle + [csAcceptsControls];
|
|
with GetControlClassDefaultSize do
|
|
SetInitialBounds(0, 0, CX, CY);
|
|
end;
|
|
|
|
// included by stdctrls.pp
|