CreateHotspot Method

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

The CreateHotspot method creates an invisible area that triggers a specific action when the user taps it.

VB

object.CreateHotspot XCoord, YCoord, Width, Height, MyColl

VC++

HRESULT hr = object->CreateHotspot(short XCoord, short YCoord, short Width, short Height, 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. This value must be greater than zero (0).

Height

The vertical extent of the widget. This value must be greater than zero (0).

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.

Example

' VB Sample Code
Dim ioIface As New RFIO
Dim myCollection As New WaveLinkWidgetCollection
Dim myFactory As New WaveLinkFactory
Dim my Hotspot As WaveLinkWidget
.
.
.
' In this example, clear the screen and hide the cursor
ioIface.RFPrint 0, 25, "", WLCLEAR
myFactory.DefaultCoordinateType = BYPIXEL
' Give some context for the hotspot
myFactory.CreateBitmap 20, 20, 35, 25, _
"logo.bmp", myCollection
' Create the widget
Set myHotspot = myFactory.CreateHotspot 20, 20, 35, 25, _
myCollection

myCollection.StoreWidgets

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal