SetBoxLeft

Navigation:  »No topics above this level«

SetBoxLeft

Return to chapter overview

void = SetBoxLeft(nQuarkUnits)

 

Use the SetBoxLeft macro function to specify the left position of the textbox that contains the macro token.

 

The left position of a textbox is related to the X value which appears in the Measurements Palette of QuarkXPress as shown below.

 

 

The function expects Quark internal units, whereby:

 

a point is defined as 65536 units

therefore an inch is 4718592 units

and a millimeter is approximately 185771 units

 

The value of the position you supply to this function must include the offset from the pasteboard to the left of the page. This means all values must be increased by 1/2 inch, so if you wish to set the box left to 5 inches then you need to pass in 5.5 inches (ie. to 25952256 in Quark units).

 

IMPORTANT:

 

This function only changes the left position of the box; the right position of the box remains unchanged. This means that a call to this function changes the width of the box. Therefore any call to SetBoxWidth should always occur after calls to SetBoxLeft.

Calls to textbox resizing macro functions take effect immediately, before executions passes to the next line of the macro. Therefore it is essential that you place the calls in the proper order so that you are not telling Quark to set the bottom of a box above its top, or the right side of a box to the left of its left position.

 

Textbox resizing functions only work on textboxes whose angle is a multiple of 90 degrees (0­°, 90°, 180°, or 270°), and functions which specify an absolute value for one or more of the top-left-bottom-right sides of a textbox, such as the present function, should not be used if the textbox angle is different from zero, unless you really know what you are doing.


Topic 179910 updated on 07-Aug-17.
Topic URL: https://www.qppstudio.net/webhelp/index.html?boxleft2.htm