2012
Table Of Contents
- Contents
- Basic Customization
- Custom Linetypes
- Custom Hatch Patterns
- User Interface Customization
- Understand User Interface Customization
- Work with the Customize User Interface (CUI) Editor
- Create and Manage Customization Files
- Customize Commands
- Customize User Interface Elements
- Customize Workspaces
- Transfer and Migrate Customization
- Customize User Interface (CUI) Editor FAQs
- DIESEL
- Slides and Command Scripts
- Migrate and Transfer Custom Settings and Files
- Index
you use to increase the width of a menu label must be within a DIESEL
expression.
The next example uses the same DIESEL expression as the label and a portion
of the menu item. It provides a practical way to enter the current day and
date into a drawing.
$(edtime,$(getvar,date),DDD", "D MON YYYY)^C^Ctext +
\\\ $M=$(edtime,$(getvar,date),DDD", "D MON YYYY);
Also, you can use a DIESEL macro to mark pull-down menu labels or make
them unavailable. The following pull-down menu label displays an unavailable
ERASE while a command is active. The text is displayed normally when a
command is not active.
$(if,$(getvar,cmdactive),~)ERASE
You can use a similar approach to place a mark beside a pull-down menu item
or to interactively change the character used for the mark.
You can use the CLIPBOARD system variable to enable or disable Clipboard
commands on your menu. For example, the following DIESEL expression
disables the Paste Special menu item when the Clipboard is empty:
$(If,$(getvar, clipboard),,~)/Paste &Special...
^C^C_pastespec
Quick Reference
System Variables
CLIPBOARD
Indicates the status of the Clipboard.
MENUECHO
Sets menu echo and prompt control bits.
USERNAME
Specifies the user name.
Catalog of DIESEL Functions
Status retrieval, computation, and display are performed by DIESEL functions.
All functions have a limit of 10 parameters, including the function name itself.
If this limit is exceeded, you get a DIESEL error message.
328 | Chapter 5 DIESEL