LosGirk 发表于 2022-7-5 15:48:44

What does & symbol in front of

What does the & symbol in front of a DCL label do?
example:

label = "&Exit Program";
 
I forgot! Hopefully someone knows quick like off the top of their head;
Thank you!

rlx 发表于 2022-7-5 16:27:52

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-AutoLISP/files/GUID-1D855150-4635-4F6B-B277-28C7EF21B939-htm.html
 
 
 
 
Any character in a label string that is preceded by an ampersand (&) becomes the mnemonic. The character doesn't have to be unique to the dialog box. If more than one tile has the same mnemonic, the user presses that key to cycle through the tiles sequentially.
Mnemonics change focus but do not select a tile. If the user specifies a mnemonic key for a tile that contains a group of items, such as a cluster or a list box, the focus is put on the first item in the tile that is a tab stop

LosGirk 发表于 2022-7-5 16:57:49

Thank you sir.
页: [1]
查看完整版本: What does & symbol in front of