![]() |
![]() |
This query does not return information about objects within groups; use PGetObjectIDList instead.
unsigned long nObjectID;
Unique ID of object
unsigned long nMaskID;
Unique ID of mask object if nObjectID is masked
0 if nObjectID is not masked
unsigned long nGroupID;
0 (always 0 for top-level objects)
short nDrawNumber;
Drawing order number of object
short cTypeOfObject;
0 reserved (currently not used)
1 for text block
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 polygon
13 reserved (currently not used)
14 for group
PMBool bTransformed;
false if object has not been transformed
true if object has been transformed
PMBool bLinked;
false if object is not linked to an external file
true if object is linked to an external file
long xLeftOrStart;
x coordinate of left-top handle of object, or starting point of line in twips
long yTopOrStart;
y coordinate of left-top handle of object, or starting point of line in twips
long xRightOrEnd;
x coordinate of bottom-right handle of object, or end point of line in twips
long yBottomOrEnd;
y coordinate of bottom-right handle of object, or end point of line in twips
long xRightOrStart;
x coordinate of right-top handle of object, or starting point of line in twips
long yTopOrStart2;
y coordinate of right-top handle of object, or starting point of line in twips
long xLeftOrEnd;
;x coordinate of bottom-left handle of object, or end point of line in twips
long yBotOrEnd2;
y coordinate of bottom-left handle of object, or end point of line in twipsFacing pages. In double-sided, facing-pages mode, PageMaker returns the object list for both pages.
Coordinates for transformed objects. If the object was skewed, rotated, or reflected, the coordinate pairs (xLeftOrStart, yTopOrStart), (xRightOrStart, yTopOrStart2), (xLeftOrEnd, yBotOrEnd2), and (xRightOrEnd, yBottomOrEnd) correspond to the original left-top, right-top, left-bottom, and right-bottom handles, but indicate their new locations.
Coordinates for transformed Group. If the group was skewed, rotated, or reflected, the coordinate pairs (xLeftOrStart, yTopOrStart), (xRightOrStart, yTopOrStart2), (xLeftOrEnd, yBotOrEnd2), and (xRightOrEnd, yBottomOrEnd) correspond to the group's current left-top, right-top, left-bottom, and right -bottom handles.
Left-top handle
original position
Left-top handle
original position
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.
Example. The following example creates a new publication, draws and styles two boxes (of different sizes), and skews the second box. It selects both boxes, groups them, and then queries for the top-level object. In this case, only the group object is returned. The two boxes are not included since they are part of the group.
PNew();
PBox(0, 0, 3, 1);
PLineStyle(kOnepoint);
PFillStyle(kNone);
PBox(0, 0, 2, 1);
PLineStyle(kNone);
PFillStyle(kSolid);
PSkew(kLeftTop, -450);
PSelectAll();
PGroup();
PGetObjectIDListTop();
--expected reply: 1,3,0,1,14,0,0,0,0,3,1,3,0,0,1
Comments or suggestions? Contact Adobe Developer Support