This member of WaveLinkWidget Object is supported on: Palm, CE
The WidgetID method retrieves the unique identifer of the current widget
VB
WidgID = object.WidgetID
VC++
HRESULT hr = object->get_WidgetID(long *WidgID);
Return Values
WidgID |
The variable that retrieves the unique widget identifier |
Remarks
The WidgetID property is read-only. The unique widget ID is automatically assigned when you create the widget.
The widget ID is returned through a previous RFInput call or a GetEvent call. To process input from the widget based on the widget ID, use the LastExtendedType method.
To process user input based on the general input type (command key, widget input, scanned input, etc.), use the LastInputType method
Example
' VB Sample Code
Dim wlio As New RFIO
Dim DoneWidget As WaveLinkWidget
Dim StartWidget As WaveLinkWidget
Dim nLastInputType As Integer
Dim pszProcessIn As String
pszProcessIn = ""
.
.
. ' In this example, create widgets named StartWidget
' and DoneWidget (not shown)
.
.
.
' use RFInput or GetEvent to obtain input
pszProcessIn = wlio.GetEvent
' do error checking
.
.
.
nLastInputType = wlio.LastInputType
Select Case nLastInputType
Case WLCOMMANDTYPE
If pszProcessIn = Chr$(24) Then
Exit Sub
End If
Case WLWIDGETTYPE
If wlio.LastExtendedType() = StartWidget.WidgetID Then
GetSignature
End If
If wlio.LastExtendedType() = DoneWidget.WidgetID Then
Exit Sub
End If
End Select
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other