PColor

Applies a color to the selected text or graphics or, if nothing is selected, to the next object drawn or placed.


Command constructor

PColor(const char * sColorName, short nTintValue = -2);
const char * sColorName;
Name of color, exactly as it appears on Colors palette (maximum of 31 characters).
short nTintValue;
Percentage of color to apply to object (from 0 to 100) in tenths of a percent (100.0% =1000), although command uses only whole percentages and decimal values are rounded.
kParmDontCare (-2) to leave setting unchanged (default)
All palette colors are available. You can apply any color that appears on the Colors panel.

Fill and line of PageMaker objects. Regardless of the setting of the Fill and Line menu on the Colors palette, the PColor command applies a color to both the fill and line of objects drawn in PageMaker. If an object has a fill style of None, the PColor command changes the fill style to Solid.

Example. The following example applies a 25% red tint to the first object drawn on the page.

PSelect(1);
PColor("Red", 250);


See also

The PColorPalette, PDefineColor, and PTintSelection commands

The PGetColor, PGetColorInfo, PGetColorNames, PGetColorPalette and PGetTint queries

Adobe PageMaker 6.5 Help > Commands > Window > Colors


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

Comments or suggestions? Contact Adobe Developer Support