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

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