PFillAndLine

Sets the fill and line attributes of the selected objects: style, color, overprint attribute, weight (lines only), and tint percentage. Acts on PageMaker-drawn objects only.


Command constructor

PFillAndLine(short cFillStyle, const char * sFillColor, PMBool bFillOverprint, short cLineStyle, PMBool bReverse, short dWeight, PMBool bOpaque, const char * sLineColor, PMBool bLineOverprint, short nFillTint, short nLineTint);
short cFillStyle;
kParmDontCare to leave style unchanged
kFillNone
kFillPaper
kFillSolid
kFillVertFew
kFillVertLots
kFillHorizFew
kFillHorizLots
kFillDiagFew
kFillDiagLots
kFillHashFew
kFillHashLots
const char * sFillColor;
Name of color exactly as it appears on Colors palette (maximum of 31 characters)
kParmDontCare to leave the color unchanged.
PMBool bFillOverprint;
false to knockout any portion of an element positioned beneath object
true to print all overlapping elements
short cLineStyle;
kParmDontCare to leave the line style unchanged
kLineNone(these are defined in PKeywords.h)
kLineHairline
kLineHalfPoint
kLineOnePoint
kLineTwoPoint
kLineFourPoint
kLineSixPoint
kLineEightPoint
kLineTwelvePoint
kLineThinThin
kLineThickThin
kLineThinThick
kLineThinThickThin
kLineThinDash
kLineMediumDash
kLineThickDash
kLineSquares
kLineDots
kLineCustomSolid
for a solid line of weight specified by dWeight
PMBool bReverse;
false for normal
true for reverse line
kParmDontCare to leave setting unchanged
short dWeight;
Weight of custom line, in points (precise to one decimal place) in tenths of a point (5.5 = 55).
kParmDontCare to leave existing line weight unchanged or for predefined line weight (e.g., hairline)
PMBool bOpaque;
false to make the background of compound, dashed, or dotted lines transparent; default
true to make the background of compound, dashed, or dotted lines opaque
const char * sLineColor;
Name of color exactly as it appears on Colors palette (maximum of 31 characters)
kParmDontCare to leave color unchanged.
PMBool bLineOverprint;
false to knockout any portion of an element positioned beneath the line
true to overprint any portion of an element that the line overlaps
short nFillTint;
Percentage of color to apply to the object fill (from 0 to 100) in tenths of a percent (100% = 1000), although command uses only whole percentages and decimal values are rounded.
kParmDontCare to leave setting unchanged (default)
short nLineTint;
Percentage of color to apply to the object line (from 0 to 100) in tenths of a percent (100% = 1000), although command uses only whole percentages and decimal values are rounded.
kParmDontCare to leave setting unchanged (default)
PageMaker objects only. The PFillAndLine command applies only to objects drawn in PageMaker, not imported objects.

dWeight overrides cStyle. Set the dWeight parameter to kParmDontCare unless you are defining a custom line. The value of dWeight overrides the line weight specified in cStyle.

Text tool, story editor, or no object. If the text tool is active, the command results in an error. If either the story editor is active or no PageMaker objects are selected, the specified fill and line become the default settings for the publication.

Tinting and shading objects. In PageMaker 6.5, you tint an object's fill using the nFillTint parameter. Earlier versions of PageMaker set solid fills from 10 percent to 80 percent of an object's color (tenpct or 3 to eightypct or 8). To duplicate these fill styles, set cFillStyle to kFillSolid and set nFillTint to the desired percentage, from 0 to 100.

Example. The following example selects the first object drawn on the page and sets its fill to a 30% Red tint. The 20-point line is a 20% Green tint. When printing, PageMaker will knockout any portion of an element beneath the fill, but will overprint the line.

PSelect(1);
PFillAndLine(kFillSolid, "Red", false, kLineCustomSolid, false, 200, false, "Green", true, 300, 200);


See also

The PFillStyle and PLineStyle commands

The PGetFillAndLine, PGetFillStyle, and PGetLineStyle queries

Adobe PageMaker 6.5 Help > Commands > Element > Fill and Line


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

Comments or suggestions? Contact Adobe Developer Support