Please enable JavaScript to view this site.

 

void = MoveBoxRight(nFixedUnits)

 

the XYWH measurements palettes of QuarkXPress and InDesign

the XYWH measurements palettes of QuarkXPress and InDesign

This macro function moves the right position of the current textbox by nFixedUnits, without changing the position of the other 3 sides.

nPos = SizeMm(10000// 10 mm or about 0.25 inches
MoveBoxRight(nPos)

This macro function is similar to SetBoxRight but, instead of specifying the right position of the current textbox, it moves the right position by nFixedUnits.

 

A positive value of nFixedUnits means that the textbox will get wider, while a negative value of nFixedUnits means that the textbox will get narrower.

 

Non-Rotated Boxes

 

Looking at the XYWH measurements palette of QuarkXPress and InDesign, where the right for non-rotated boxes is X+W, the effect of this function is to change the value of W by nFixedUnits and leave the 3 other values unchanged.

 

Rotated Boxes

 

Textbox resizing functions only work on textboxes whose angle is a multiple of 90 degrees (0­°, 90°, 180°, or 270°).

 

When using this function with QuarkXPress, you should not use this function on a rotated box. Instead you should rotate the text inside a non-rotated box, as explained in the gridtemplate construction guidelines.

 

When using this function with InDesign, it is the visual right of the box that is moved and therefore the changes to the values of XYWH will differ depending on the rotation of the box, ensuring that the visual result of this function is always the same.

 

See also: MoveBoxHor, SizeMm, SizePt, SizeIn and textbox resizing macro functions.

 


Topic 181630, last updated on 15-Feb-2025