This member of Class WaveLinkWidget is supported on: Palm, CE
The InitialFlags Property stores and retrieves the initial state of the widget.
Syntax.
public long getInitialFlags()
public void setInitialFlags(long initalFlags)
Parameters
initialFlags |
The variable that specifies the initial state. The possible values are: INITDISABLED - Initial state of the widget is disabled INITHIDDEN - Initial state of the widget is hidden INITSTANDARD - Initial state of the widget is shown and enabled |
Returns
The initial state of the widget
Throws
WaveLinkError
Remarks
A disabled widget appears on the screen, but does not return when you click it. The appearance of a disabled widget is platform dependent. Typically, a disabled widget is either grayed out or its display text is crosshatched.
Unlike other widgets, a disabled hotspot widget does not appear on the RF screen.
See Constant Values for the numeric equates returned by the function.
Example
WaveLinkFactory factoryIface = new WaveLinkFactory();
WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();
WaveLinkWidget myWidget;
try {
.
.
.
myWidget = factoryIface.CreateButton(4, 12, 0, 0, " Start ", colIface);
// Set the widget state.
myWidget.setInitialFlags(WaveLinkWidget.INITHIDDEN);
colIface.StoreWidgets();
}
catch (WaveLinkError wlErr) {
// Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other