Class TCastleOnScreenMenuItemToggle

Unit

Declaration

type TCastleOnScreenMenuItemToggle = class(TCastleOnScreenMenuItem)

Description

Menu item of TCastleOnScreenMenuItem that can be toggled. Shows "yes" or "no" depending on a Boolean Checked.

Hierarchy

Overview

Methods

Protected procedure DoClick; override;
Public constructor Create(AOwner: TComponent); override;

Properties

Published property Checked: Boolean read FChecked write SetChecked default false;
Published property AutoToggle: boolean read FAutoToggle write FAutoToggle default false;

Description

Methods

Protected procedure DoClick; override;
 
Public constructor Create(AOwner: TComponent); override;
 

Properties

Published property Checked: Boolean read FChecked write SetChecked default false;

The Boolean value of this menu item.

Published property AutoToggle: boolean read FAutoToggle write FAutoToggle default false;

Automatically negate Checked on each click. This makes it easy to handle this component, often it means that you don't need to handle it's OnClick event.


Generated by PasDoc 0.16.0.