Share
 
 

button Title (DCL)

A Button tile resembles a push button.

Supported Platforms: Windows, Mac OS, and Web

Windows
: button {
   actionalignmentfixed_heightfixed_width 
   heightis_cancelis_defaultis_enabled 
   is_tab_stopkeylabelmnemonicwidth 
}
Mac OS and Web
: button {
   actionalignmentfixed_heightfixed_width 
   heightis_cancelis_defaultis_enabled 
   keylabelwidth 
}

The button's label specifies text that appears inside the button. Buttons are appropriate for actions that are immediately visible to the user such as leaving the dialog box, or going into a subdialog box.

Dialog boxes must include an OK button (or its equivalent) for the user to press after using (or reading) the box. Many dialog boxes also include a Cancel button that enables the user to leave the dialog box without making any changes.

Dialog boxes should use the standard exit button subassemblies when possible.

Note: If you make the default button and the cancel button the same, you must make sure at least one other exit button is associated with an action that calls done_dialog. Otherwise, the dialog box is always canceled.
label

Specifies the text that appears in the button.

Release Information

    Releases:

  • AutoCAD R12 and later on Windows
  • AutoCAD 2021 and later on Mac OS

Was this information helpful?