Untitled

(Steven Felgate) #1
You cannot use trailing spaces in a menu label to increase the menu width,
because trailing spaces are ignored while the menu is being loaded. Any spaces
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.

330 | Chapter 5 DIESEL

Free download pdf