Castle Game Engine: CastleWindow: Class TMenuItemChecked

# Class TMenuItemChecked
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleWindow ## Declaration `type TMenuItemChecked = class(TMenuItem)` ## Description TMenuItem that should visualize Checked state somehow to the user. ## Hierarchy TObject TMenuEntry TMenuEntryWithCaption TMenuItem TMenuItemChecked ## Overview ### Methods
| `procedure SetChecked(Value: boolean); virtual;`
| `procedure DoAutoCheckedToggle; virtual;`
| `function DoClick: boolean; override;`
| `constructor Create(const ACaption: String; AIntData: Integer; AChecked, AAutoCheckedToggle: boolean);`
| `constructor Create(const ACaption: String; AIntData: Integer; ACharKey: char; AChecked, AAutoCheckedToggle: boolean);`
| `constructor Create(const ACaption: String; AIntData: Integer; AKey: TKey; AChecked, AAutoCheckedToggle: boolean);`
### Properties
| `property Checked: boolean read FChecked write SetChecked;`
| `property AutoCheckedToggle: boolean read FAutoCheckedToggle write FAutoCheckedToggle;`
## Description ### Methods
| `procedure SetChecked(Value: boolean); virtual;`
Called when Checked property is assigned.
| `procedure DoAutoCheckedToggle; virtual;`
Called from DoClick when AutoCheckedToggle is `True`. It's supposed to actually implement the AutoCheckedToggle behavior. Note that this is overriden ina a "dirty" way (i.e. not calling "inherited") in TMenuItemRadio descendant.
| `function DoClick: boolean; override;`
Overriden to handle AutoCheckedToggle. In this class, `DoClick` still returns false (like in ancestor class).
| `constructor Create(const ACaption: String; AIntData: Integer; AChecked, AAutoCheckedToggle: boolean);`
| `constructor Create(const ACaption: String; AIntData: Integer; ACharKey: char; AChecked, AAutoCheckedToggle: boolean);`
| `constructor Create(const ACaption: String; AIntData: Integer; AKey: TKey; AChecked, AAutoCheckedToggle: boolean);`
### Properties
| `property Checked: boolean read FChecked write SetChecked;`
| `property AutoCheckedToggle: boolean read FAutoCheckedToggle write FAutoCheckedToggle;`
If `True` then each time user chooses this menu item, Checked is changed to `not Checked`.
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:13