PTextWrapPoly(PRequestBuf& request);
Because this command requires a variable amount of information, you must create a PRequestBuf object, load it with point data, and then create a PTextWrapPoly object.Important: xLocation and yLocation specifications. Unlike most coordinates, which are relative to the rulers' zero point, xLocation and yLocation values are relative to the upper-left handle of the graphic.The PRequestBuf object must contain a count field (short) followed by that many pairs of x/y point values (longs), expressed in twips. For each of the points in the polygon, specify a pair of coordinates (relative to the upper left handle of the graphic)
long xlocation;
x coordinate of point in twipslong ylocation;
y coordinate of point in twips
Wrapping around the object. To wrap the text around the outside of the object, specify xLocation and yLocation in clockwise order, starting with the upper-left handle.
Wrapping inside the object. To wrap the text on the inside of the object, specify xLocation and yLocation in counter-clockwise order, starting with the upper-left handle.
Wrap specifications. Although you can create a text-wrap polygon with the columnbreak or jumpover text flow settings, the text conforms to the specified shape only if it flows on all sides of the object.
Layout view only. The PTextWrapPoly command works only in layout view.
Example. The following example selects a graphic, specifies text-wrapping around the outside of the object, and creates a triangular polygon, starting at the first coordinate (03p, 03p) in the upper left handle of the graphic and moving clockwise to the second coordinate (3p6, 2p) and third coordinate (1p6, 5p6).
PRequestBuf request(100); // 100 bytes, plenty big
request << 3;
request << (long) twips("0p3") << (long) twips("0p3");
request << (long) twips("3p6") << (long) twips("2p");
request << (long) twips("1p6") << (long) twips("5p6");
PTextWrapPoly(request);
The PGetTextWrap and PGetTextWrapPoly queries
Adobe PageMaker 6.5 Help > Commands > Element > Text Wrap
Comments or suggestions? Contact Adobe Developer Support