AfraLisp Blog

The AutoLisp/Visual Lisp/VBA Resource Website

AfraLisp Blog

Home Newsletter Utter Rubbish Coding Tips AutoCAD Tips Contact Downloads WAUN

mnemonic

mnemonic

Mnemonic

This attribute specifies a keyboard mnemonic character for a tile. The mnemonic character is underlined in the tile's label. The value is a quoted string of a single character that must be one of the letters of the tile's label. (No default).
The character does not have to be unique to the dialogue box. If more that one tile has the same mnemonic, you press Tab to cycle through the tiles sequentially.

The label attribute can also specify a mnemonic by preceding a character with an ampersand: (&). 


DCL Code Sample 

lisp49j : dialog {				//dialog name
          label = "mnemonic";			//give it a label

	: button {				//define a button
	  key = "btn1";				//give it a name
	  label = "Button No 1";		//give it a label
	  fixed_width = true;			//fix it's width
	  alignment = centered;			//centre it
	  mnemonic = "1";			//the mnemonic
	}					//end button

	: button {				//define a button
	  key = "btn2";				//give it a name
	  label = "Button No &2";		//give it a label
						//and define the
						//mnemonic
	  fixed_width = true;			//fix it's width
	  alignment = centered;			//centre it
	}					//end button
			

	spacer;					//add a spacer

        ok_cancel ;				//predefined OK/Cancel button

        }					//end dialog
 
The AutoLisp/Visual Lisp/VBA Resource Website

Copyright 1999-Perpetuity by AfraLisp

All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage

The AutoLisp/Visual Lisp/VBA Resource Website