CreateLabel Method

This member of Class WaveLinkFactory is supported on: Palm, CE

The CreateLabel Method creates positioned text that is in a proportionally spaced font and has the same "lifetime" as the other widgets.

Syntax

public WaveLinkWidget CreateLabel(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 that will contain the widget

Returns

A pointer to the label 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).

Example

WaveLinkFactory factoryIface = new WaveLinkFactory();

WaveLinkWidgetCollection colIface = new WaveLinkWidgetCollection();

.

.

.

try {

factoryIface.CreateLabel(10, 10, 0, 0, "Version 1.5", colIface);

colIface.StoreWidgets();

}

catch (WaveLinkError wlErr) {

//Do error handling

}

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal