Using Intel® Visual Fortran to Create and Build Windows*-Based Applications

ID 757211
Date 7/23/2021
Public
Document Table of Contents

Available Indexes for Each Dialog Control

The available indexes and defaults for each of the controls are listed in the following table:

Dialog Controls and Their Indexes

Control Type

Integer Index Name

Logical Index Name

Character Index Name

Subroutine Index Name

Using ActiveX* Controls Overview

DLG_IDISPATCH

DLG_ENABLE

Using Buttons

DLG_ENABLE

DLG_TITLE

DLG_CLICKED

Using Check Boxes and Radio Buttons

DLG_STATE (default)

DLG_ENABLE

DLG_TITLE

DLG_CLICKED

Using List Boxes and Combo Boxes

DLG_NUMITEMS

Sets or returns the total number of items in a list

DLG_ENABLE

Use DLG_STATE, DLG_ADDSTRING, or an index:

DLG_STATE

By default, sets or returns the text of the selected item or first item in the list

DLG_ADDSTRING

Used with DLGSETCHAR to add a new item. It automatically increments DLG_NUMITEMS.

An index, 1 to n

Sets or returns the text of a particular item

DLG_SELCHANGE (default)

DLG_DBLCLICK

DLG_CHANGE

DLG_UPDATE

Using List Boxes and Combo Boxes

Use DLG_NUMITEMS or DLG_STATE:

DLG_NUMITEMS (default)

Sets or returns the total number of items in a list

DLG_STATE

Sets or returns the index of the selected item

DLG_ENABLE

Use DLG_STATE, DLG_ADDSTRING, or an index:

DLG_STATE

By default, sets or returns the text of the selected item or first item in the list, or you can include an index, 1 to n, to set or return indicates the text of a particular item

DLG_ADDSTRING

Used with DLGSETCHAR to add a new item. It automatically increments DLG_NUMITEMS.

DLG_SELCHANGE (default)

DLG_DBLCLICK

Using Edit Boxes

DLG_TEXTLENGTH (default)

Sets or returns the length of the text in the edit box.

DLG_POSITION

Sets or returns the cursor position

DLG_ENABLE

DLG_STATE

DLG_CHANGE (default)

DLG_UPDATE

DLG_GAINFOCUS

DLG_LOSEFOCUS

Using Group Boxes

DLG_ENABLE

DLG_TITLE

Using List Boxes and Combo Boxes

Use DLG_NUMITEMS or an index:

DLG_NUMITEMS

Sets or returns the total number of items in a list

An index, 1 to n

Determines which list items have been selected and their order

DLG_ENABLE

Use DLG_STATE, DLG_ADDSTRING, or an index:

DLG_STATE

By default, returns the text of the first selected item

DLG_ADDSTRING

Used with DLGSETCHAR to add a new item. It automatically increments DLG_NUMITEMS.

An index, 1 to n

Sets or returns the text of a particular item

DLG_SELCHANGE (default)

DLG_DBLCLICK

Using Pictures

DLG_ENABLE

Using Progress Bars

DLG_POSITION (default)

DLG_RANGEMIN

DLG_RANGEMAX

DLG_ENABLE

Using Check Boxes and Radio Buttons

DLG_STATE (default)

DLG_ENABLE

DLG_TITLE

DLG_CLICKED

Using Scroll Bars

DLG_POSITION (default)

DLG_RANGEMIN

DLG_RANGEMAX

DLG_BIGSTEP

DLG_ENABLE

DLG_CHANGE

Using Sliders

DLG_POSITION (default)

DLG_RANGEMIN

DLG_RANGEMAX

DLG_SMALLSTEP

DLG_BIGSTEP

DLG_TICKFREQ

DLG_ENABLE

DLG_CHANGE

Using Spin Controls

DLG_POSITION (default)

DLG_RANGEMIN

DLG_RANGEMAX

DLG_ENABLE

DLG_CHANGE

Using Static Text

DLG_ENABLE

DLG_TITLE

Using Tab Controls

Use DLG_NUMITEMS (default), DLG_STATE, or an index:

DLG_NUMITEMS

Sets or returns the total number of tabs

DLG_STATE

Sets or returns the currently selected tab

An index, 1 to n

Sets or returns the dialog name of the dialog box associated with a particular tab

DLG_ENABLE

Use DLG_STATE or an index:

DLG_STATE

By default, sets or returns the currently selected tab

An index, 1 to n

Sets or returns the text of a particular Tab

DLG_SELCHANGE (default)

DLG_SELCHANGING

For an overview on control indexes, see Using Control Indexes.