version 6.0
DR SET UPDATE MODE (area; mode)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| mode | Integer | 0=Off | |
| 1=On |
Description
The command DR SET UPDATE MODE turns screen updating on or off in area.
If mode equals 0, screen updating is turned off. If mode equals 1, screen updating is turned on. This command affects updates caused by both 4D Draw commands and user actions.
When screen updating is off, 4D Draw commands execute faster. For instance, if you need to execute a series of modifications to a 4D Draw area, turn off updating before beginning and then turn updating back on when you are finished. Not only will the commands execute faster, screen refresh will appear much smoother to the user.
Screen updating should always be turned on before the user has access to an area. If not, 4D Draw will not be refreshed when the user clicks or drags in the area.
Example
The following example turns off screen updating, calls a project method that makes several modifications, and then turns screen updating back on.
DR SET UPDATE MODE (Area;0) `Turn off screen updating REFORMAT (Area) `Area is a Longint DR SET UPDATE MODE (Area;1) `Turn on screen updating
See Also
DR Get update mode, DR REDRAW.