Class TCastlePanel
Unit
CastleControls
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
 |
constructor Create(AOwner: TComponent); override; |
 |
destructor Destroy; override; |
 |
function DrawStyle: TUIControlDrawStyle; override; |
 |
procedure Draw; override; |
 |
function PositionInside(const X, Y: Integer): boolean; override; |
 |
procedure Idle(const CompSpeed: Single; const HandleMouseAndKeys: boolean; var LetOthersHandleMouseAndKeys: boolean); override; |
 |
class function SeparatorSize: Cardinal; |
Properties
 |
property VerticalSeparators: TCardinalList read FVerticalSeparators; |
 |
property Width: Cardinal read FWidth write SetWidth default 0; |
 |
property Height: Cardinal read FHeight write SetHeight default 0; |
 |
property Opacity: Single read FOpacity write FOpacity default 1.0; |
Description
Methods
 |
constructor Create(AOwner: TComponent); override; |
|
 |
destructor Destroy; override; |
|
 |
procedure Draw; override; |
|
 |
function PositionInside(const X, Y: Integer): boolean; override; |
|
 |
procedure Idle(const CompSpeed: Single; const HandleMouseAndKeys: boolean; var LetOthersHandleMouseAndKeys: boolean); override; |
|
 |
class function SeparatorSize: Cardinal; |
|
Properties
 |
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.
|
 |
property Width: Cardinal read FWidth write SetWidth default 0; |
|
 |
property Height: Cardinal read FHeight write SetHeight default 0; |
|
 |
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.12.1 on 2013-02-04 20:26:50
|