This member of WaveLinkFactory Object is supported on: Palm, CE
The CreateLabel method creates positioned text that is in a porportionally spaced font and has the same "lifetime" as the other widgets.
VB
object.CreateLabel XCoord, YCoord, Width, Height, LabelText, MyColl
VC++
HRESULT hr = object->CreateLabel(short XCoord, short YCoord, short Width, short Height, BSTR LabelText, 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. |
LabelText |
The display text of the widget |
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 label. If you set these values too small, the display text will be cropped.
Example
' VB Sample Code
Dim myCollection As New WaveLinkWidgetCollection
Dim myFactory As New WaveLinkFactory
.
.
.
myFactory.CreateLabel 10, 10, 0, 0, _
"Click to Enter", myCollection
myCollection.StoreWidgets
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other