[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TCustomTaskDialog.QueryItemIndex

Ordinal position for the value in QueryChoices selected when the task dialog is executed.

Declaration

Source position: dialogs.pp line 819

public property TCustomTaskDialog.QueryItemIndex : Integer
  read FQueryItemIndex
  write FQueryItemIndex;

Description

QueryItemIndex is an Integer property which contains the ordinal position for the selected value in the QueryChoices on the dialog. It contains the initial item in QueryChoices selected when the Execute method is called. It is updated with the option selected during execution of the dialog form.

Use QueryResult to access the string value for the selected item in QueryChoices.

QueryItem and QueryResult are relevant when tfQuery has been included in the Flags for the task dialog.

Use ModalResult to determine the button or key combination used to complete execution of the dialog form.

Version info

Added in LCL version 4.0.

See also

TCustomTaskDialog.QueryChoices

  

Predefined values for the query control on the task dialog.

TCustomTaskDialog.QueryResult

  

String representation for the query entered or selected on the dialog form.

TCustomTaskDialog.Flags

  

Set of options enabled for the Task dialog.

TCustomTaskDialog.Execute

  

Displays the task dialog and captures the modal result value.

TCustomTaskDialog.ModalResult

  

Modal result value returned when the Task dialog was executed.

TTaskDialogFlags

  

Set type used to store values from the TTaskDialogFlag enumeration.

TTaskDialogFlag

  

Represents options that can be enabled for TTaskDialog.


Version 4.0 Generated 2025-05-03 Home