Class TUIControlSizeable

Unit

Declaration

type TUIControlSizeable = class(TUIControl)

Description

UI control with configurable size. By itself, this does not show anything. But it's useful as an ancestor class for new UI classes that want their size to be fully configurable, or as a container for UI children.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public function Rect: TRectangle; override;

Properties

Published property FullSize: boolean read FFullSize write SetFullSize default false;
Published property Width: Cardinal read FWidth write SetWidth default 0;
Published property Height: Cardinal read FHeight write SetHeight default 0;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public function Rect: TRectangle; override;

Position and size of the control, assuming it exists.

Looks at FullSize value, and the parent size (when FullSize is True), or at the properties Left, Bottom, Width, Height (when FullSize is False).

Properties

Published property FullSize: boolean read FFullSize write SetFullSize default false;

Control size.

When FullSize is True, the control always fills the whole parent (like TCastleWindow or TCastleControl, if you just placed the control on TCastleWindowCustom.Controls or TCastleControlCustom.Controls), and the values of Left, Bottom, Width, Height are ignored.

See also
TUIControl.Rect
Position and size of this control, assuming it exists, in local coordinates (relative to parent 2D control).
Published property Width: Cardinal read FWidth write SetWidth default 0;
 
Published property Height: Cardinal read FHeight write SetHeight default 0;
 

Generated by PasDoc 0.15.0.