PRedraw

Controls whether PageMaker redraws the screen in either layout view or story editor, depending on the view displayed when the command is sent.


Command constructor

PRedraw(PMBool bEnabled);
false to turn off redrawing of the screen for the currently displayed view (layout view or story editor)
true to turn on redrawing of the screen for the currently displayed view (layout view or story editor)
Drawing of windows not suppressed. Turning screen redraw off does not suppress the drawing of windows, only the content of the window. For example, if you turn redraw off in layout view and create a new publication, an empty publication window appears on the screen. PageMaker draws its content only after you turn redraw back on.

Error detection with Redraw off. Turning screen redraw off speeds execution of the plug-in or script and hides steps from the user until redraw is turned on again. However, if PageMaker encounters an error before redraw is turned on again, you may not be able to tell where the error occurred, and you will need to send the PRedraw command separately to PageMaker to turn it back on.

Caution: Always turn Redraw on at the end of plug-in or script. Always turn Redraw back on at the end of a plug-in or script, before returning control back to PageMaker. (Remember to turn Redraw back on for both story editor and layout view.) The PRedraw command has no menu equivalent; you must turn screen redraw back on using this command. Before you add this command to your plug-in or script, be sure it runs smoothly.

Example. The following example turns screen redraw off, selects all text, changes text size to 12 points, deselects the text, and then turns redraw back on.

PRedraw(false);
PSelectAll();
PSize(12);
PDeselect();
PRedraw(true);


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

Comments or suggestions? Contact Adobe Developer Support