"updatesEnabled"
This attribute specifies whether updates of a widget (for example, a textEdit, slider, progress bar, zoom navigator, LCD number or thumb wheel) have been enabled.
Synopsis
setValue(string shape,"updatesEnabled",bool u);
getValue(string shape,"updatesEnabled",bool &u);
shape.updatesEnabled(boolu);
Parameter
Parameter | Description |
---|---|
shape | Object name |
u |
TRUE = Updates enabled FALSE = Updates disabled |
Description
This attribute specifies whether updates of a widget (for example, a textEdit, slider, Tree Widget, progress bar, zoom navigator, LCD number or thumb wheel) have been enabled. This attribute is used to disable updates for a short period of time, for instance, to avoid screen flicker during large changes. If "updatesEnabled(false)" remains in the deactivated state unstable behaviour may occur.
Example
In the following example, the updates will be disabled:
main()
{
SELECTION_LIST1.updatesEnabled(false);
for ( int i = 0; i < 3; i++ )
{
SELECTION_LIST1.appendItem("Entry #"+i);
delay(1, 0);
}
SELECTION_LIST1.updatesEnabled(true);
}
Assignment
TextEdit, Slider, Thumb wheel, Progress bar, Tree Widget, Zoom Navigator, LCD number, DpTreeView, Scheduler.ewo, Widgets