Macro Language Reference > Macros > Window > wdr
  
wdr
Description
Redraws one or more document windows. When making changes to your document it is sometimes necessary to reformat the document and re-display any parts that have changed.
* 
The toggle parameter is the only one that should be entered by a user. All other parameters are designed to be used internally by PTC ALD only and should NOT be entered manually. Users should only ever invoke wdr in one of the following three ways:
wdr
wdr +
wdr -
 
Example 329. Redraw the entire work area
wdr
Syntax
wdr toggle:i
wdr window:n ( box:n ( x1, x2:n ( y1, y2:n ) ) )
wdr
[no parameter]
Redraw the whole screen.
toggle
-
Turn redraw off.
+
Turn redraw on.
 
These are the only form of the wdr keyword that should be used by user. The following parameters are designed to be used internally by PTC ALD only, therefore use of these parameters may result in unpredictable results.
window
The number of the window to be redrawn: window numbers begin at one and increment for every document opened. If a document is closed that window id number becomes free and the lowest free number will be assigned to the next document opened. Note that the numbers on the Window menu alongside the filenames are not the window id numbers. The only way to determine a window id number is to use the getvar 01504 (or doc.window.id), e.g. boxit ^[doc.window.id]^.
 
The wtp macro only redraws the top window and as such is more efficient than wdr if only one window needs to be redrawn.
Example: the following syntax redraws the part of the work area that is in the region (0,0)->(100,100) of window one:
wdr 1,0,0,0,100,100
box
0
Work area
1
Top bar
2
Side bar
3
Edit bar
xl, xr
The left and right coordinates within the box. These coordinates are in pixels, so for example if you are running a desktop resolution of 800 x 600 the screen coordinates are 0,0 to 799,599. These coordinates are relative to the top left corner of the Windows MDI document window. They are not relative to the position of the edit bar or anything other area, even if you specify the box argument as 3 (for edit bar).
yt, yb
The top and bottom coordinates within the box.
Related Links