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

TGridLayout

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

The TGridLayout class lays out widgets in a grid.

Declaration

Source position: layouts.inc line 198

type TGridLayout = class(TCustomGridLayout)

published

  property Enabled;

  

  property ColCount;

  

  property RowCount;

  

  property ColSpacing;

  

  property RowSpacing;

  

  property GridPositions;

  

end;

Inheritance

TGridLayout

  

The TGridLayout class lays out widgets in a grid.

|

TCustomGridLayout

  

|

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

TGridLayout takes the space made available to it (by its parent layout or by the Parent), divides it up into rows and columns, and puts each widget it manages into the correct cell.

Columns and rows behave identically. A TGridLayout lays out widgets in a two-dimensional grid. Widgets can also occupy multiple cells.

0,0 0,1 0,2
1,0 1,1 1,2
2,0 2,1 2,2