Command Prompt for Windows




Command DLGITEM

Function:

Add an item to a dialog box.

Syntax:

DLGITEM "title" type id dlg_id x y cx cy [proc]
"title"A sequence of characters that specifies the text to be displayed by the item.
typeSpecifies the style and type of item to create and may be one of the following names :-

LTEXTLeft justified static text
RTEXTRight justified static text
CTEXTcentred static text
BLACKRECTBlack rectangle
WHITERECTWhite rectangle
GREYRECTGrey rectangle
BLACKFRAMEBlack frame
WHITEFRAMEWhite frame
GREYFRAMEGrey frame
GROUPBOXGroup box
CHECKBOXCheck box
RADIOBUTTONRadio Button
BUTTONPush button
DEFBUTTONDefault push button
LEDITLeft justified edit text
REDITRight justified edit text
CEDITCentred edit text
LISTBOXList box
SLISTBOXSorted list box
COMBOBOXCombo box
DROPDOWNDrop down combo box
DROPLISTDrop down list combo box
SCOMBOBOXSorted combo box
SDROPDOWNSorted drop down combo box
SDROPLISTSorted drop down list combo box
idSpecifies a unique identifier for the item.
dlg_idSpecifies the identifier of a dialog box that owns the specified item.
xSpecifies the horizontal co-ordinate for the left hand side of the item.
ySpecifies the vertical co-ordinate for the top of the item.
cxSpecifies the width of the item.
cySpecifies the height of the item.
procSpecifies the name of the procedure to call to handle the items events.

Note:

Co-ordinates are relative to the top left hand corner of the client area of the dialog box specified by parameter dlg_id.

Parameter id, which is used to reference the item, must be a unique value amongst all other items that are owned by the dialog box.

Also see command DLGBOX.