This command is new in PageMaker 6.5
PNewLayer(const char * sLayerName, PMBool bShow, PMBool bLock, short nColorIndex);
const char * sLayerName;
Name for the new layer.PMBool bShow;
true for show layer, false for hide layer.PMBool bLock;
true to lock the layer, false to create it unlocked.short nColorIndex;
Color for object handles to indicate that the object is on this layer.Other... pm_customcolorindex, "customcolorindex"
Predefined Color Color Index Black 0 Red 1 Green 2 Blue 3 Yellow 4 Magenta 5 Cyan 6 Gray 7 Light Blue 8 Orange 9 Dark Green 10 Teal 11 Tan 12 Brown 13 Violet 14 Gold 15 Dark Blue 16 Pink 17 Lavender 18 Brick Red 19 Olive Green 20 Peach 21 Burgundy 22 Grace Green 23 Ochre 24 Purple 25 Light Gray 26
PNewLayer(const char * sLayerName, PMBool bShow, PMBool bLock, long nRed, long
nGreen, long nBlue);
Example. This example creates a new layer called "More stuff". The layer is visible, unlocked and the object handles will be dark green.const char * sLayerName;
Name for the new layer.PMBool bShow;
true for show layer, false for hide layer.PMBool bLock;
true to lock the layer, false to create it unlocked.long nRed;
Red value for custom handle color.long nGreen;
Green value for custom handle color.long nBlue;
Blue value for custom handle color.
PNewLayer("More stuff", true, false, 10);
The PGetLayerFromID, PGetLayerList, PGetLayerOptions, PGetPasteRemembers, and PGetTargetLayer queries
Comments or suggestions? Contact Adobe Developer Support