Macro Language Reference > Macros > Document > trf
  
trf
Description
Re-formats the current page and re-displays any parts that have changed. This macro is useful in some of the more advanced editing situations, especially after editing a style tag in the edit bar. Use this macro if you suspect that PTC ALD has not reformatted your page properly. If this does not help you can use the more powerful tformat macro.
 
Example 53. Assign a reformat and redraw operation to a key
This example shows a common use for the trf macro: applying it in conjunction with wdr and assigning the joint operation to a key to facilitate regular manual page refreshing:
*0000trf:wdr
0000 is the number of the key to which to assign the operation.
Syntax
trf on_off:n?
trf
[no parameter]
Re-format the current page
on_off
0
Deactivate PTC ALD default reformatting option to stop the display from being updated as you type.
* 
Can be useful if you have to enter large amounts of text and don't want to be held up by the screen updating. Screen updates are also affected by the edit bar priority, set using the ty macro.
1
Activate PTC ALD default reformatting option to update display as you type
--1
Deactivate formatting AND do not remove text when a frame is moved
other
Toggle PTC ALD default re-formatting option on or off
Related Links