Class TCastlePanel

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCastlePanel = class(TUIRectangularControl)

Description

Panel inside OpenGL context. Use as a comfortable (and with matching colors) background for other controls like buttons and such. May be used as a toolbar, together with appropriately placed TCastleButton over it.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure Render; override;
Public function PositionInside(const Position: TVector2Single): boolean; override;
Public function Rect: TRectangle; override;
Public class function SeparatorSize: Cardinal;

Properties

Public property VerticalSeparators: TCardinalList read FVerticalSeparators;
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 destructor Destroy; override;
 
Public procedure Render; override;
 
Public function PositionInside(const Position: TVector2Single): boolean; override;
 
Public function Rect: TRectangle; override;
 
Public class function SeparatorSize: Cardinal;
 

Properties

Public property VerticalSeparators: TCardinalList read FVerticalSeparators;

Separator lines drawn on panel. Useful if you want to visually separate groups of contols (like a groups of buttons when you use this panel as a toolbar).

Values are the horizontal positions of the separators (with respect to this panel Left). Width of the separator is in SeparatorSize.

Published property Width: Cardinal read FWidth write SetWidth default 0;
 
Published property Height: Cardinal read FHeight write SetHeight default 0;