CreateField Method

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

The CreateField method creates an input box.

VB

object.CreateField XCoord, YCoord, Width, Height, FieldText, MyColl

VC++

HRESULT hr = object->CreateField(short XCoord, short YCoord, short Width, short Height, BSTR FieldText, 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.

FieldText

The default text contained in the field

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).

Example

' VB Sample Code
Dim iolIface As New RFIO
Dim myCollection As New WaveLinkWidgetCollection
Dim myFactory As New WaveLinkFactory
Dim myWidget As WaveLinkWidget
.
.
.
' Create and title a field to get the user's name
ioIface.RFPrint 3, 2, "Enter your Name:", WLCLEAR
Set myWidget = myFactory.CreateField(3, 3, 12, _
1, "your name", myCollection)

mycollection.StoreWidgets

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal