PResize

Changes the size of the selected object.


Command constructor

PResize(short cHandle, long xLocation, long yLocation, PMBool bProp = false, PMBool bBestSize = false);
short cHandle;
Handle to drag:
Corner handles:
kEdgeLeftTop
kEdgeLeftBottom
kEdgeRightTop
kEdgeRightBottom
long xLocation;
x coordinate, relative to the current zero point, to which you want the specified corner dragged in twips
long yLocation;
y coordinate, relative to the current zero point, to which you want the corner dragged in twips
PMBool bProp;
false for no proportional resizing, the default
true for proportional resizing
PMBool bBestSize;
false (the default)
true for stretching a paint-type graphic to the best size for the printer resolution
Single objects only. The PResize command can resize only one object at a time.

bProp and bBestSize together. The bProp and bBestSize parameters can be used in combination, if desired.

Snap to guides and rulers. Just as when resizing an object with the pointer tool, the PResize command is sensitive to the setting of the Snap to Guides and Snap to Ruler options. If Snap to Guides or Snap to Rulers are on, the object may be resized to a guide or ruler division rather than the location you specify. To avoid this possibility, turn Snap to Guides and Snap to Rulers off prior to resizing, using the PSnapToGuides and PSnapToRulers commands.

Size of publication window. If the publication window is less than one fourth the size of the screen, you must turn off the PSnapToGuides and PSnapToRulers commands prior to resizing.

Do not resize lines. Using PResize to change the length of a line may cause unexpected results. If you want a different line length, it's best to delete the line and create a new one.

cHandle for transformed objects. If the selected object was skewed, rotated, or reflected, cHandle should correspond to the handle before the object was transformed. For example, kEdgeLeftTop always refers to the original left-top handle of an object, not the handle that is currently the left-most top handle.

Layout view only. The PResize command works only in layout view.

Example. The following example turns Snap to Guides and Snap to Rulers off so the location you specify is not pulled to a guide or ruler division. Next, it selects an object, resizes the object by dragging the left-edge handle as close to the specified coordinates as possible, keeps the selection proportional, and fits it to the printer resolution. Finally, it turns Snap to Guides and Snap to Rulers back on.

PSnapToGuides(false);
PSnapToRulers(false);
PSelect(3)
PResize(kEdgeLeft, 500, 500, true, false);
PSnapToGuides(true);
PSnapToRulers(true);


See also

The PResizePct command

The PGetTransform query

Adobe PageMaker 6.5 Help > Commands > Layout > Guides and Rulers

Adobe PageMaker 6.5 Help > Commands > Window > Control Palette


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support