Class TCastleMenuToggle

Unit

Declaration

type TCastleMenuToggle = class(TCastleMenuButton)

Description

Warning: this symbol is deprecated: use TCastleOnScreenMenuItemToggle

Button that looks nice as an "accessory" that can be toggled (shows "yes" / "no" depending on TCastleButton.Pressed), attached to the TCastleOnScreenMenu item.

Hierarchy

Overview

Methods

Protected procedure SetPressed(const Value: boolean); override;
Public constructor Create(AOwner: TComponent); override;
Public procedure DoClick; override;

Properties

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

Description

Methods

Protected procedure SetPressed(const Value: boolean); override;
 
Public constructor Create(AOwner: TComponent); override;
 
Public procedure DoClick; override;
 

Properties

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

Automatically negate Pressed 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, and you only need to observe it's Pressed value.


Generated by PasDoc 0.16.0.