[Overview][Resource strings][Constants][Types][Classes][Procedures and functions] Reference for unit 'fpGUI' (#fpgui)

TLayout

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The fpGUI layout system provides a simple and powerful way of specifying the layout of child widgets

Declaration

Source position: layouts.inc line 48

type TLayout = class(TContainerWidget)

protected

  FWidgets: TCollection;

  

  FBorderSpacing: Integer;

  

  IsRecalcingLayout: Boolean;

  

  function GetChildCount; override;

  

  function GetChild(); override;

  

  procedure AddFixedChild();

  

  property BorderSpacing: Integer; [rw]

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  function ContainsChild(); override;

  

end;

Inheritance

TLayout

  

The fpGUI layout system provides a simple and powerful way of specifying the layout of child widgets

|

TContainerWidget

  

TContainerWidget is an abstract class that defines the interface for containing other widgets

|

TWidget

  

The TWidget class is the base class of all user interface objects.

|

TComponent

?

TObject

Description

The fpGUI layout system provides a simple and powerful way of specifying the layout of child widgets.

By specifying the logical layout once, you get the following benefits:

See also

TBoxLayout

  

Lays out widgets in a horizontal or vertical position.

TGridLayout

  

The TGridLayout class lays out widgets in a grid.

TDockingLayout

  

TFixedLayout

  

The TFixedLayout allows you to arrange widgets at set x and y co-ordinates