PCloseStory

Closes the active story in story editor.


Command constructor

PCloseStory(PMBool bPlace);
false to discard story without placing it (affects unplaced stories only)
true to display loaded text gun in layout view (affects unplaced stories only)
Story editor only. The PCloseStory command works only in story editor. If the story editor is not active, the constructor throws a CQ_LO_INVALID_MODE exception.

bPlace ignored for placed stories. If the story has already been placed, PageMaker ignores the value of the bPlace parameter and simply closes the story (as if you clicked the Go Away box).

Placing story on page. If the story being closed has not been placed, PageMaker switches to the previously active page in layout view and displays the loaded text gun. To place the story on the page, use the place command.

PCloseStory can close story editor. If the story being closed is the only story open in story editor, PageMaker switches to the previously active page in layout view.

Example. The following example closes the current story and activates the text gun if the story has not already been placed.

PCloseStory(true);


See also

The PEditLayout, PEditStory, and POpenStory commands

Adobe PageMaker 6.5 Help > Commands > Story > Close Story


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

Comments or suggestions? Contact Adobe Developer Support