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