SetRedraw method (DataWindows)
Description
Controls the automatic redrawing of an object or control after
each change to its properties.
Controls
DataWindow type |
Method applies to |
---|---|
PowerBuilder |
DataWindow control |
Syntax
[PowerBuilder]
1 |
integer <span>objectname</span>.<span>SetRedraw</span> ( boolean <span>redraw </span>) |
Argument |
Description |
---|---|
objectname |
The name of the object or control for |
redraw |
A boolean value that controls whether
|
Return Values
Returns 1 if it succeeds and –1 if an error occurs.
If redraw is null, SetRedraw returns null.
Usage
By default, PowerBuilder redraws a control after each change
to properties that affect appearance. Use SetRedraw to
turn off redrawing temporarily in order to avoid flicker and reduce
redrawing time when you are making several changes to the properties
of an object or control. If the window is not visible, SetRedraw fails.
Inherited from DragObject. For more details on use with PowerBuilder objects,
see SetRedraw in the PowerScript Reference.