4D Write v16

WR UPDATE MODE

Home

 
4D Write v16
WR UPDATE MODE

WR UPDATE MODE 


 

WR UPDATE MODE ( area ; mode ) 
Parameter Type   Description
area  Longint in 4D Write area
mode  Integer in 0=No update 1=Update

The WR UPDATE MODE command allows the designer to enable and disable screen updating in area. This command only affects screen updates caused by 4D Write commands. User actions in area will continue to update the screen correctly.

In the mode parameter, you can pass one of the following constants, found in the "WR Parameters" theme:

Constant Type Value Comment
wr screen updating off Longint 0 Disables screen updating
wr screen updating on Longint 1 Enables screen updating

When you call WR UPDATE MODE while passing the wr screen updating on constant in mode, the area is redrawn so it is not necessary to call the WR REDRAW command.

When screen updating is turned off, 4D Write commands execute faster. For example, if you intend to execute a series of modifications to a 4D Write area, turn off updating before beginning the modifications and then turn updating on when you are finished. The commands execute faster as well as the screen redraw.

Example  

The following example turns off screen updating, calls the Reformat project method that makes several modifications, and then turns screen updating back on:



See also 

WR REDRAW

 
PROPERTIES 

Product: 4D Write
Theme: WR Area Control
Number: 89247

 
HISTORY 

Created: 4D Write 6

 
ARTICLE USAGE

4D Write Language ( 4D Write v16)