Macro Language Reference > Macros > Graphic > tgpos
  
tgpos
Description
Changes the position of selected graphic objects.
 
Example 154. Position an object graphic relative to its current position
The macro shown below moves the selected shape across 10mm, and down 5mm:
tgpos 10mm,5mm,1,1
Syntax
tgpos x pos:uh? ( y pos:uv? ( mode:n? ( relative:n? ) ) )
tgpos
[no parameter]
Invoke the Set object position dialog box.
x pos
Horizontal position
y pos
Vertical position
mode
Ø|0
Set top left position
1
Set centre position
relative
Ø|0
Treat xpos and ypos as absolute positions
1
Treat xpos and ypos as positions relative to the current position
Additional Information
This is, in effect, exactly the same as the tgcentre macro, with the exception that mode defaults to a different value.
Related Links