This member of Class WaveLinkFactory is supported on: Palm, CE
The CreateSelectorTrigger Method creates a button that implies that a new screen appears when the user "clicks" it.
Syntax
public WaveLinkWidget CreateSelectorTrigger(int XCoord, int YCoord, int Width, int Height, String displayText, 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 |
displayText |
The display text of the widget |
targetCollection |
The name of the collection which will contain the widget |
Returns
A pointer to the selector trigger widget
Throws
WaveLinkError
Remarks
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). AUTOSIZE sizes the selector trigger widget according to the size of the text that it contains.
Example
WaveLinkFactory factoryIface = new WaveLinkFactory();
WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();
WaveLinkIO ioIface = new WaveLinkIO();
WaveLinkTerminal termIface = new WaveLinkTerminal();
.
.
.
try {
ioIface.RFPrint(0, 0, "WaveLink Corporation", WaveLinkIO.WLCLEAR | WaveLinkIO.WLREVERSE);
ioIface.RFPrint(0, 0, " Test Demo ", WaveLinkIO.NORMAL);
factoryIface.CreateSelectorTrigger(4, (termIface.TerminalHeight() – 2), 0, 0, " Configure ", colIface);
colIface.StoreWidgets();
}
catch (WaveLinkError wlErr) {
//Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other