SetCoordinates Method

This member of WaveLinkWidget Object is supported on: Palm, CE

The SetCoordinates method sets the type of positioning, the top left corner, the width, and the height of the widget.

VB

object.SetCoordinates CoordType, LeftCoord, TopCoord, WidgetWidth, WidgetHeight

VC++

HRESULT hr = object->SetCoordinates(CoordinateTypes CoordType, short LeftCoord, short TopCoord, short WidgetWidth, short WidgetHeight);

Parameters

CoordType

The classification of the values placed in LeftCoord, TopCoord, WidgetWidth, and WidgetHeight. The possible coordinate types are:

BYCELL Position the widget using cell coordinates (rows and columns)

BYPIXEL Position the widget using pixel coordinates

BYPERCENTAGE Position the widget using percentage coordinates

LeftCoord

The left-most position of the widget

TopCoord

The upper-most position of the widget

WidgetWidth

The horizontal extent of the widget

WidgetHeight

The vertical extent of the widget

Remarks

You can assign a special AUTOSIZE setting to the widget by passing a value of 0 for its height and width. This setting sizes a button or selector trigger widget according to the size of the text that it contains. To give a hotspot widget functionality, however, you must set its width and height to something other than than AUTOSIZE. It is recommended that you use the AUTOSIZE setting for the height and width of all other widget types.

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal