![]() |
![]() |
PColor(const char * sColorName, short nTintValue = -2);
All palette colors are available. You can apply any color that appears on the Colors panel.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)
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);
The PGetColor, PGetColorInfo, PGetColorNames, PGetColorPalette and PGetTint queries
Adobe PageMaker 6.5 Help > Commands > Window > Colors
Comments or suggestions? Contact Adobe Developer Support