Macro Language Reference > Macros > Document > tsysmnu
  
tsysmnu
Description
Some PTC ALD menus need access to certain information about the current document so that proper choices can be presented to the user. For example, the wmn macro has the facility to accept absolute values: the tsysmnu macro provides a method of passing further parameters to wmn.
Syntax
tsysmnu mode:n? macro:b?
mode
Options for mode differ depending on whether the parameters par0 to par4 are preceded by a 0 or 1:
0
par0
0
No frame selected
1
Frame is selected
par1
0
Page undo is not valid
1
Page undo is valid
0 (cont)
par2
0
Avoid is off for frame
1
Avoid is on for frame
2
Multiple frames are selected
par3
0
Vertical justification is off for frame
1
Vertical justification is on for frame
2
Multiple frames are selected
1
par0
0
No text selected
1
Cursor is in some text
2
No text selected
par1
not used
par2
0
Cursor tracking off
1
Cursor trackingon
2
Page tracking on
3
Both cursor and page tracking on
1 (cont)
par3
0
Replace mode off
1
Replace mode on
par4
0
Accurate click
1
Quick click
macro
Any string of characters preceded by a ? and containing %i, where frame or text related parameters are to be inserted.
Additional Information
The script below is from stuk.3ad. The menu defined in string 52 is called for by the macro at the end of string 51, which uses tsysmnu to test whether or not a frame is selected. If a frame is not selected a ~ character is drawn in front of the menu item, making it unselectable (greyed out).
"ts","51"
. . .
$ ..More Details|*tsysmnu 0\?wmn 52,%i,%i,%i,%i <>!!

"ts","52"
$ ..More|*tsysmnu 0\?wmn 51,%i,%i,%i,%i <> !!
$?0?NO FRAME SELECTED <> !!
$Frame details: <>
$?0?~!! Mode|^532^tfmode<>
$?0?~!! Colours|tfbcol <>
$?0?~!! Rules|tfrules <>
Related Links