Macro Language Reference > Macros > Graphic > tgmode
  
tgmode
Description
Sets a specific graphic mode by number.
 
Example 150. Call the graphics editing functions with the wmn macro
This can be illustrated from PTC ALDstuk.3ad file. Calling for menu 70 with the macro tgmode ?wmn 70,%i passes the current graphic mode to wmn as parameter 0. The wmn macro displays the graphics editing functions on a menu. The menu definition then inserts a pointer next to whichever item matches the parameter:
"ts","70"
$Graphics Editing:<>
$?0,9? Select|^526^tgsel<>
$?0,11? Add Select|^526^tgaddsel<>
$?0,19? Deselect|^526^tgdesel<>
$?0,1? Edit|tgedit<>
$?0,3? Move|tgmove<>
$?0,6? Rotate|tgrot<>
$?0,10? Copy|tgcopy<>
If, for instance, the current graphic mode were 9 ('Select') a pointer would have been shown next to the first menu line.
Syntax
tgmode +:L 0:L graphics mode:n macro:b
+
Selects the next mode in the order they appear below:
0
De-select the current mode.
graphics mode
Number of the required mode
1
Edit: see tgedit
2
Dummy
3
Move: see tgmove
4
Stretch: see tgstr
5
Size: see tgsize
6
Rotate: see tgrot
7
Split: see tgsplit
8
Equal split: see tgspleq
9
Select: see tgsel
10
Copy: see tgcopy
11
Add graphic to selection: see tgaddsel
12
Shadow copy: see tgshadow
13
Round corners: see tground
14
Curve: see tgcurve
15
Add edit points: see tgedadd
16
Delete edit points: see tgeddel
17
Select: see tgsel
18
Thread points: see tgthread
19
De-select: see tgdesel
102
Box: see tgbox
103
Straight line: see tgline
104
Freehand line: see tgfline
105
Circle: see tgfcircle
106
Ellipse: see tgellip
107
Text: see tgatext
108
Raster: see tgras
109
Square: see tgsquare
macro
Used internally by PTC ALD to pass current page size information to a wmn macro so that the current choice can be shown with a pointer.
Related Links