Home > Language Reference > Classes > ChoiceControl

Redraw Property

Determines whether the control is updated each time the list is modified.

Syntax

Public Property Get Redraw() As Boolean
Public Property Let Redraw(ByVal bRedraw As Boolean)

ParameterDescription
bRedrawBoolean value.

Remarks

The Redraw property determines whether the control should be redrawn immediately to take into account modifications affecting the list by the AddItem, RemoveItem and Clear methods, or by the List and ListIndex properties.

This property behaves like a counter. If you set its value to False twice, you'll also have to set its value twice to True to restore the control's normal state. If you set its value to False more than 127 times consecutively, a runtime error occurs. This behavior means you can write functions which deactivate then reactivate the drawing of a control without having to worry about the previous state of the control.

You can use this property to improve the performance of your program and prevent the control from flickering when you add or modify several items at a time from a list.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A