Class TCastlePanel

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCastlePanel = class(TUIControlPos)

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 function DrawStyle: TUIControlDrawStyle; override;
Public procedure Draw; override;
Public function PositionInside(const X, Y: Integer): boolean; 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;
Published property Opacity: Single read FOpacity write FOpacity default 1.0;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function DrawStyle: TUIControlDrawStyle; override;
 
Public procedure Draw; override;
 
Public function PositionInside(const X, Y: Integer): boolean; 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;
 
Published property Opacity: Single read FOpacity write FOpacity default 1.0;

Opacity (1 - transparency) with which control is drawn. When this is < 1, we draw control with nice blending. Make sure you have some background control underneath in this case.


Generated by PasDoc 0.13.0 on 2013-08-17 21:27:12