mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:19:36 +02:00
Gtk3: TGtk3GroupBox does not need overriden SetBounds().
This commit is contained in:
parent
25900905ef
commit
27bd792656
@ -708,7 +708,6 @@ type
|
|||||||
function getText: String; override;
|
function getText: String; override;
|
||||||
procedure setText(const AValue: String); override;
|
procedure setText(const AValue: String); override;
|
||||||
public
|
public
|
||||||
procedure SetBounds(ALeft,ATop,AWidth,AHeight:integer); override;
|
|
||||||
function getClientRect:TRect; override;
|
function getClientRect:TRect; override;
|
||||||
property GroupBoxType: TGtk3GroupBoxType read FGroupBoxType write FGroupBoxType;
|
property GroupBoxType: TGtk3GroupBoxType read FGroupBoxType write FGroupBoxType;
|
||||||
end;
|
end;
|
||||||
@ -3603,23 +3602,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TGtk3GroupBox.SetBounds(ALeft,ATop,AWidth,AHeight:integer);
|
|
||||||
var
|
|
||||||
Alloc:TGtkAllocation;
|
|
||||||
begin
|
|
||||||
{$IF DEFINED(GTK3DEBUGSIZE) OR DEFINED(GTK3DEBUGGROUPBOX)}
|
|
||||||
writeln(Format('TGtk3GroupBox.setBounds l %d t %d w %d h %d',[ALeft, ATop, AWidth, AHeight]));
|
|
||||||
{$ENDIF}
|
|
||||||
LCLWidth := AWidth;
|
|
||||||
LCLHeight := AHeight;
|
|
||||||
Alloc.x := ALeft;
|
|
||||||
Alloc.y := ATop;
|
|
||||||
Alloc.width := AWidth;
|
|
||||||
Alloc.Height := AHeight;
|
|
||||||
Widget^.set_allocation(@Alloc);
|
|
||||||
Move(ALeft, ATop);
|
|
||||||
end;
|
|
||||||
|
|
||||||
{$IF DEFINED(GTK3DEBUGSIZE) OR DEFINED(GTK3DEBUGGROUPBOX)}
|
{$IF DEFINED(GTK3DEBUGSIZE) OR DEFINED(GTK3DEBUGGROUPBOX)}
|
||||||
procedure ContainerChildrenCallback(widget: PGtkWidget; data: gpointer); cdecl;
|
procedure ContainerChildrenCallback(widget: PGtkWidget; data: gpointer); cdecl;
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user