This member of WaveLinkFactory Object is supported on: Palm, CE
The CreateRepeaterButton method creates a button that implies that something will be scrolled or incremented. The four available buttons are: left arrow, right arrow, up arrow, and down arrow.
VB
object.CreateRepeaterButton XCoord, YCoord, Width, Height, Type, MyColl
VC++
HRESULT hr = object->CreateRepeaterButton(short XCoord, short YCoord, short Width, short Height, RepeaterType Type, WaveLinkWidgetCollection MyColl);
Parameters
XCoord |
The starting left coordinate of the widget |
YCoord |
The starting top coordinate of the widget |
Width |
The horizontal extent of the widget. Pass a value of 0 to set the width automatically. |
Height |
The vertical extent of the widget. Pass a value of 0 to set the height automatically. |
Type |
The type of repeater button. The possible repeater button types are: LEFTARROW RIGHTARROW UPARROW DOWNARROW |
MyColl |
The name of the collection that will contain the widget |
Remarks
The DefaultCoordinateType property determines how the application interprets the values entered for the position, width, and height of the widget.
You can set the size of the widget to AUTOSIZE by setting the width and height to zero (0). It is recommended that you use the AUTOSIZE setting for the height and width of the repeater button. Changing this value from its default will not affect the size of the widget, only the extent of the clickable area surrounding it.
Example
' VB Sample Code
Dim myFactory As New WaveLinkFactory
Dim myCollection As New WaveLinkWidgetCollection
Dim myLeftWidget As WaveLinkWidget
Dim myRightWidget As WaveLinkWidget
.
.
.
Set myLeftWidget = myFactory.CreateRepeaterButton(1, 7, 0, _
0, LEFTARROW, myCollection)
Set myRightWidget = myFactory.CreateRepeaterButton(19, 7, 0, _
0, RIGHTARROW, myCollection)
myCollection.StoreWidgets
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other