PNewLayer

This command creates a new layer at the top of the layers list.

This command is new in PageMaker 6.5


Command constructors

This class has two constructors to create a new layer with either a predefined color index or a custom RGB color.

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.
Predefined ColorColor 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
Other... pm_customcolorindex, "customcolorindex"
PNewLayer(const char * sLayerName, PMBool bShow, PMBool bLock, long nRed, long nGreen, long nBlue);
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.
Example. This example creates a new layer called "More stuff". The layer is visible, unlocked and the object handles will be dark green.

PNewLayer("More stuff", true, false, 10);


See also

The PAssignLayer, PDeleteLayer, PDeleteUnusedLayers, PLayerOptions, PLockLayers, PMoveLayer, PPasteRemembers, PSelectLayer, PShowLayers, and PTargetLayer commands

The PGetLayerFromID, PGetLayerList, PGetLayerOptions, PGetPasteRemembers, and PGetTargetLayer queries


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

Comments or suggestions? Contact Adobe Developer Support