SetPosition  SetRow

Chapter 9: Methods for the DataWindow Control

SetRedraw

Description

Controls the automatic redrawing of an object or control after each change to its properties.

Syntax

integer objectname.SetRedraw ( boolean redraw )

Argument

Description

objectname

The name of the object or control for which you want to change the redraw setting.

redraw

A boolean value that controls whether PocketBuilder redraws an object automatically after a change. Values are:

  • TRUE — Automatically redraw the object or control after each change to its properties.

  • FALSE — Do not redraw after each change.

Returns

Returns 1 if it succeeds and -1 if an error occurs. If redraw is NULL, SetRedraw returns NULL.

Usage

By default, PocketBuilder 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.

NoteUsing with other PocketBuilder controls For use with other objects, see SetRedraw in the PowerScript Reference.





Copyright © 2004. Sybase Inc. All rights reserved. SetRow

View this book as PDF