Class TUIRectangularControl
Unit
CastleUIControls
Declaration
type TUIRectangularControl = class(TUIControl)
Description
TUIControl that has a position and takes some rectangular space on the container.
The position is controlled using the Left, Bottom fields. The rectangle where the control is visible can be queried using the Rect virtual method.
Note that each descendant has it's own definition of the size of the control. E.g. some descendants may automatically calculate the size (based on text or images or such placed within the control). Some descendants may allow to control the size explicitly using fields like Width, Height, FullSize. Some descendants may allow both approaches, switchable by property like TCastleButton.AutoSize or TCastleImageControl.Stretch.
Hierarchy
Overview
Methods
Properties
 |
property Left: Integer read FLeft write SetLeft stored false default 0; |
 |
property Bottom: Integer read FBottom write SetBottom default 0; |
Description
Methods
 |
procedure DefineProperties(Filer: TFiler); override; |
|
 |
function Rect: TRectangle; virtual; abstract; |
Position and size of this control, assuming it exists. This must ignore the current value of the GetExists method and Exists property, that is: the result of this function assumes that control does exist.
|
 |
procedure AlignHorizontal( const ControlPosition: TPositionRelative = prMiddle; const ContainerPosition: TPositionRelative = prMiddle; const X: Integer = 0); |
Position the control with respect to the container by adjusting Left.
|
 |
procedure AlignVertical( const ControlPosition: TPositionRelative = prMiddle; const ContainerPosition: TPositionRelative = prMiddle; const Y: Integer = 0); |
Position the control with respect to the container by adjusting Bottom.
|
 |
procedure Center; |
Center the control within the container both horizontally and vertically.
|
Properties
 |
property Left: Integer read FLeft write SetLeft stored false default 0; |
|
 |
property Bottom: Integer read FBottom write SetBottom default 0; |
|
Generated by PasDoc 0.13.0 on 2014-10-26 05:15:15
|