Class TCastleOnScreenMenuItem
Unit
Declaration
type TCastleOnScreenMenuItem = class(TCastleUserInterface)
Description
Clickable menu item of TCastleOnScreenMenu.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TInputListener
- TCastleUserInterface
- TCastleOnScreenMenuItem
Overview
Methods
![]() |
procedure DoClick; virtual; |
![]() |
procedure BeforeSizing; override; |
![]() |
procedure TranslateProperties(const TranslatePropertyEvent: TTranslatePropertyEvent); override; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
procedure Render; override; |
![]() |
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
![]() |
function Press(const Event: TInputPressRelease): boolean; override; |
![]() |
function Release(const Event: TInputPressRelease): boolean; override; |
![]() |
function Motion(const Event: TInputMotion): boolean; override; |
Properties
![]() |
property AutoSizeToChildren default true; |
![]() |
property Caption: String read FCaption write SetCaption; |
![]() |
property CaptionTranslate: Boolean read FCaptionTranslate write FCaptionTranslate default true; |
![]() |
property OnClick: TNotifyEvent read FOnClick write FOnClick; |
![]() |
property Enabled: Boolean read FEnabled write SetEnabled default true; |
![]() |
property RightCaption: String read FRightCaption write SetRightCaption; |
Description
Methods
![]() |
procedure DoClick; virtual; |
![]() |
procedure BeforeSizing; override; |
![]() |
procedure TranslateProperties(const TranslatePropertyEvent: TTranslatePropertyEvent); override; |
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
procedure Render; override; |
![]() |
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
![]() |
function Press(const Event: TInputPressRelease): boolean; override; |
![]() |
function Release(const Event: TInputPressRelease): boolean; override; |
![]() |
function Motion(const Event: TInputMotion): boolean; override; |
Properties
![]() |
property AutoSizeToChildren default true; |
![]() |
property Caption: String read FCaption write SetCaption; |
|
Text displayed by this on-screen menu item. | |
![]() |
property CaptionTranslate: Boolean read FCaptionTranslate write FCaptionTranslate default true; |
|
Should the Caption be localized (translated into other languages). Determines if the property is enumerated by TCastleComponent.TranslateProperties, which affects the rest of localization routines. | |
![]() |
property OnClick: TNotifyEvent read FOnClick write FOnClick; |
|
Event fired when user chooses this menu item in any way. | |
![]() |
property Enabled: Boolean read FEnabled write SetEnabled default true; |
|
Whether menu item is enabled. | |
![]() |
property RightCaption: String read FRightCaption write SetRightCaption; |
|
Additional text displayed on the right side. | |
Generated by PasDoc 0.16.0.


