PGetSelectList

Gets the number of objects currently selected and lists each object's drawing number, type, and coordinates.


Query results

This query returns a list of object information. For each object:

short nDrawNumber;

Drawing-order number of object
-2 for inline graphic
short cTypeOfObject;
0 reserved (currently not used)
1 for text
2 reserved (currently not used)
3 for line
4 for box
5 for oval
6 for TIFF or bitmap image
7 reserved (currently not used)
8 for PICT
9 for PICT (same as 8)
10 for metafile
11 for EPS
12 for multigon
13 reserved (currently not used)
14 for group
long xLeftOrStart;
x coordinate of left-top handle of object, or start point for lines in twips
long yTopOrStart;
y coordinate of left-top handle of object, or start point for lines in twips
long xRightOrEnd;
x coordinate of right-bottom handle of object, or end point for lines in twips
long yBottomOrEnd;
y coordinate of right-bottom handle of object, or end point for lines in twips
Coordinates for transformed objects. If the selected object was skewed, rotated, or reflected, the coordinate pairs (xLeftOrStart, yTopOrStart) and (xRightOrEnd, yBottomOrEnd) correspond to the original left-top and right -bottom handles, but indicate their new locations.

Coordinates for lines. PageMaker returns the corners of the bounding box for most objects, but returns the starting and end points for lines. The first coordinates (xLeftOrStart, yTopOrStart) correspond to the starting point of the line. The second coordinates (xRightOrEnd, yBottomOrEnd) correspond to the end point of the line.

Where the weight of a line lies in relation to the end points depends upon the type of line and whether the user has flipped the weight of the line with the pointer tool to the other side of the line (horizontal and vertical lines only). The illustration above shows the default locations: Horizontal lines hang down from the end points; vertical lines hang to the right of the end points; diagonal lines are centered.

This query does not return fields that specify:


See also

The PGetObjectIDList, PGetObjectList, and PGetObjectLoc, and PGetSelectIDList queries


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

Comments or suggestions? Contact Adobe Developer Support