mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 08:47:18 +01:00
Gives a initial size for TUntabbedNotebook
git-svn-id: trunk@27093 -
This commit is contained in:
parent
58756ec370
commit
bd13bc5897
@ -148,6 +148,8 @@ end;
|
||||
TUntabbedNotebook Constructor
|
||||
------------------------------------------------------------------------------}
|
||||
constructor TUntabbedNotebook.Create(TheOwner: TComponent);
|
||||
var
|
||||
lSize: TSize;
|
||||
begin
|
||||
inherited Create(TheOwner);
|
||||
|
||||
@ -157,6 +159,10 @@ begin
|
||||
|
||||
ControlStyle := []; // do not add csAcceptsControls
|
||||
TabStop := true;
|
||||
|
||||
// Initial size
|
||||
lSize := GetControlClassDefaultSize();
|
||||
SetInitialBounds(0, 0, lSize.CX, lSize.CY);
|
||||
end;
|
||||
|
||||
destructor TUntabbedNotebook.Destroy;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user