Sign in Join
FPDoc Onlineexperiment

TCustomTaskDialog.QueryChoices property

Member of TCustomTaskDialogpublicIn unit Dialogs

Predefined values for the query control on the task dialog.

Declaration

pascal
property QueryChoices: TStrings read FQueryChoices write SetQueryChoices;

Description

QueryChoices is a TStrings property with a list of predefined values that can be selected in the query control on the task dialog. Values in QueryChoices are displayed in a TComboBox control created for the task dialog when tfQuery has been included in the Flags property. Include tfQueryFixedChoices in Flags to make the values in QueryChoices read-only in the combo-box control.

Use QueryItemIndex to determine which value is initially selected in QueryChoices, or returned when the task dialog was executed. Use QueryResult to access the string value returned in the query control.

Added in LCL version 4.0.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.