PNewStory

Creates a new, empty story (same as clicking the text tool except that y1 designates the top of the text block).


Command constructor

PNewStory(long x1, long y1);
long x1;
Horizontal ruler location in twips
0 if in story editor
long y1;
Vertical ruler location for top of text block in twips
0 if in story editor
Automatic text block sizing. If you click the text tool within a column, PageMaker sizes the text block to fit the column, moving the left and right handles to the column edges. The PNewStory command works in the same way. PageMaker uses the x1 and y1 location as a starting point for the text, but moves x1 to the left edge of the column if that coordinate falls within a col umn.

Top of text block. Unlike clicking the text tool, the y1 coordinate specifies the location of the top of the text block.

Story editor. If you use the PNewStory command while in story editor, PageMaker disregards the x and y coordinates. To place the story on the page later, use the PCloseStory command followed by the PPlace command.

Move and resize commands. You can change the placement of the text block using the PMove and PResize commands.

Example. The following example switches to layout view and goes to page 1. It then creates a new story at the location six inches right on the horizontal (x) axis and four inches down the vertical (y) axis, relative to the rulers' zero point. If the location is within a column, the text block will move to the left edge of the column.

PEditLayout();
PPage(1);
PNewStory(twips("6i"), twips("4i"));


See also

Adobe PageMaker 6.5 Help > Commands > Story > New Story


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

Comments or suggestions? Contact Adobe Developer Support