This member of WaveLinkWidget Object is supported on: Palm, CE
The SetReturnInfo method sets the type and value of events returned by the widget.
VB
object.SetReturnInfo Index, EventType, EventValue, Symbology
VC++
HRESULT hr = object->SetReturnInfo(short Index, short EventType, BSTR EventValue, short Symbology);
Parameters
Index |
The variable that specifies the return type for widgets with multiple return types Pass a value of 0 unless the widget has multiple return types. |
EventType |
The variable that specifies the event type returned by the widget (by default, WLWIDGETTYPE) |
EventValue |
The variable that specifies the value returned by the widget (by default, the default value is different for different widget types). |
Symbology |
The variable that specifies the symbology type. Use a value of WLNOSYMBOLOGY if you do not want a barcode symbology returned by the widget. |
Remarks
The default return type is WLWIDGETTYPE. To process user input based on the return type (command key, widget input, scanned input, etc.), use the LastInputType Method.
The default value returned by a widget is different for different widget types. Use the RFInput Method or GetEvent Method to return the value of the widget.
Use a value of zero (0) for the Index parameter for all widgets unless the widget has multiple return types. Currently, only the checkbox widget has multiple return types. The possible values for the checkbox widget are:
0 - CHECKED
1 - UNCHECKED
2 – UNDETERMINED
The possible symbology types are:
B_UPC
CODABAR
CODE_11
CODE_128
CODE_39
CODE_93
CODE_D25
CODE_I25
D25_IATA
EAN_13
EAN_8
MSI
PDF_417
TO_39
UCC_128
UPC_A
UPC_E0
UPC_E1
WLNOSYMBOLOGY
Example
' VB Sample Code
wlwidgcoll As New WaveLinkWidgetCollection
myFactory As New WaveLinkFactory
myWidget As WaveLinkWidget
.
.
.
' create one or more widgets
Set myWidget = myFactory.CreateRepeaterButton (1, 2, 0, 0, _
RIGHTARROW, wlwidgcoll)
'set the return info
myWidget.SetReturnInfo 0, WLKEYTYPE, "RIGHT", WLNOSYMBOLOGY
wlwidgcoll.StoreWidgets
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other