This member of Class WaveLinkFactory is supported on: Palm, CE
The CreateRepeaterButton Method creates a button that implies that something can be scrolled or incremented. The four available buttons are: left arrow, right arrow, up arrow, and down arrow.
Syntax
public WaveLinkWidget CreateRepeaterButton(int XCoord, int YCoord, int Width, int Height, int repeaterType, WaveLinkWidgetCollectiontargetCollection)
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 |
repeaterType |
The type of repeater button. The possible values for repeaterType are: DOWNREPEATER - down arrow button LEFTREPEATER - left arrow button RIGHTREPEATER - right arrow button UPREPEATER - up arrow button |
targetCollection |
The name of the collection that will contain the widget |
Returns
A pointer to the repeater button 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).
We recommend that you use the AUTOSIZE setting for the height and width of the repeater button. Changing this value from its default does not change the size of the widget, only the extent of the clickable area surrounding it.
Example
WaveLinkFactory factoryIface = new WaveLinkFactory();
WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();
.
.
.
try {
factoryIface.CreateRepeaterButton(1, 7, 0, 0, WaveLinkWidget.UPREPEATER, colIface);
factoryIface.CreateRepeaterButton(19, 7, 0, 0, WaveLinkWidget.DOWNREPEATER, colIface);
colIface.StoreWidgets();
}
catch (WaveLinkError wlErr) {
//Do error handling
}
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other