Class TStateDialogChoice

Unit

Declaration

type TStateDialogChoice = class(TStateDialog)

Description

Ask user to choose from a number of options. Each choice is shown as a button, user can also press the appropriate character. ButtonChars length must be always equal to ButtonCaptions. See unit CastleDialogStates documentation for example usage.

Hierarchy

Overview

Fields

Public ButtonCaptions: array of string;
Public ButtonChars: array of char;
Public AllowCancel: boolean;

Methods

Protected procedure InitializeButtons(var Buttons: TStateDialog.TButtonArray); override;
Public function Press(const Event: TInputPressRelease): boolean; override;

Properties

Public property Answer: char read FAnswer;

Description

Fields

Public ButtonCaptions: array of string;
 
Public ButtonChars: array of char;
 
Public AllowCancel: boolean;
 

Methods

Protected procedure InitializeButtons(var Buttons: TStateDialog.TButtonArray); override;
 
Public function Press(const Event: TInputPressRelease): boolean; override;
 

Properties

Public property Answer: char read FAnswer;

User answer to the dialog question, defined when Answered. This is one of the ButtonChars.


Generated by PasDoc 0.16.0.