This member of Class WaveLinkWidgetCollection is supported on: Palm, CE
The EnableWidgets Method enables or disables all widgets within the current collection.
Syntax
public void EnableWidgets(boolean enableWidgs)
throws WaveLinkError
Parameters
enableWidgs |
A true or false value that determines whether widgets are enabled or disabled |
Throws
WaveLinkError
Remarks
For the enableWidgs parameter, a true value enables widgets and a false value disables widgets.
Example
WaveLinkFactory factoryIface = new WaveLinkFactory();
WaveLinkWidgetCollection colIface = new
WaveLinkWidgetCollection();
WaveLinkWidget myWidget;
try {
// Create one or more widgets.
.
.
.
myWidget = factoryIface.CreateButton(1, 2, 0, 0, " Go ", colIface);
// Set the property to disable the widget.
myWidget.setInitialFlags(WaveLinkWidget.INITDISABLED);
colIface.StoreWidgets();
}
catch (WaveLinkError wlErr) {
//Do error handling
}
.
.
.
try {
// Now enable the disabled widget(s).
colIface.EnableWidgets(true);
}
catch (WaveLinkError wlErr) {
//Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other