Arbortext Command Language > Functions by Alphabetical Listing > dlgitem_set_mnemonic
  
dlgitem_set_mnemonic
dlgitem_set_mnemonic (win, dlgitem, mnemonic)
Sets the mnemonic of the dialog item specified by dlgitem in the window specified by win to the letter specified by mnemonic. If win is invalid, or if dlgitem does not exist within win, 0 is returned. If successful, the function returns 1.
The win parameter is a window identifier. dlgitem is the value of the control's id attribute. The mnemonic parameter is a letter to set as the mnemonic for the specified dialog item (lower case). In order for the mnemonic to be properly set on the dialog item, the letter mnemonic specified must occur in the label of the dialog item. To avoid conflicts with other dialog item mnemonics, you should set each dialog item in a given dialog to a unique mnemonic.
Example
$ret = dlgitem_set_mnemonic($win,"matchMarkup","r")
Related Topics
dlgitem_get_mnemonic function