This member of Class WaveLinkFactory is supported on: Palm, CE
The CreateField Method creates an input box.
Syntax
public WaveLinkWidget CreateField(int XCoord, int YCoord, int Width, int Height, String fieldText, WaveLinkWidgetCollection targetCollection)
throws WaveLinkError
Parameters
XCoord |
The starting left coordinate of the widget |
YCoord |
The starting top coordinate of the widget |
Width |
The horizontal extent of the widget |
Height |
The vertical extent of the widget |
fieldText |
The default text contained in the field |
targetCollection |
The name of collection that will contain the widget |
Returns
A pointer to the field widget
Throws
WaveLinkError
Remarks
The DefaultCoordinateType Property determines how the application interprets the values entered for the position, width, and height of the widget.
For the Width and Height parameters, pass a value of 0 to set the width or height automatically. Set the size of the widget to AUTOSIZE by setting both the width and height to zero (0).
Each returned field is a separate input event. To return additional events requires subsequent calls to either RFInput Method in the same WaveLinkIO object. Each subsequent callto RFInput or GetEvent removes one additional event from the input stack.
Example
WaveLinkFactory factoryIface = new WaveLinkFactory();
WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();
WaveLinkIO ioIface = new WaveLinkIO();
try {
ioIface.RFPrint(0, 0, "Enter your name:", WaveLinkIO.WLCLEAR);
factoryIface.CreateField(3, 3, 12, 1, "your name", colIface);
colIface.StoreWidgets();
}
catch (WaveLinkError wlErr) {
//Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other