| DialogAddPulldown | Function (Macro)

dialogs.h

HANDLE DialogAddPulldown (HANDLE Handle, short x, short y, const char *prompt, HANDLE MenuHandle, unsigned short index);

Adds a pulldown menu into a dialog box.

DialogAddPulldown adds a pulldown menu to the dialog structure associated with handle Handle at the position (x, y), where coordinates are relative to the top-left corner of the dialog box. prompt is the prompt which will appear in front of the pulldown menu, and MenuHandle is a handle of the associated menu which need to be created using PopupNew function (the same functions are used for creating pulldown and popup menus). See menus.h for more info about creating menus. DialogAddPulldown returns H_NULL in a case of error, else returns Handle. The text must fit into one line of the dialog box.
Parameter index determines where the result value of executing the pulldown menu will be stored, and also indicates what the initially selected option will be. See DialogDo for info on how and where the result values are actually stored.

Uses: DialogAdd