|
|
WireLess Studio Widgets Developer's Guide |
|
Call this method to obtain the type of the last event triggered.
SHORT GetLastEventType(void);
GetLastEventType returns the type of the last event received. If no events have been triggered, GetLastEventType returns WS_EVENT_INVALID.
The available event types are:
using WirelessStudioOleWidgets;
WStFactory oFactory = new WStFactory();
WStForm oForm = new WStForm ();
short formId = 10;
oFactory.CreateFormById(formId);
oForm.ShowById(formId, true, true);
if(oForm.GetEvent() && oForm.GetLastEventType() == (short)WSTEventTypes.WS_EVENT_FUNCTION_KEY)
{
//Add your code here...
}
Public wsForm As New WStForm
...
bResult = wsForm.ShowByName("myForm", True, True)
'Waits for an event and performs an action
While (bEnd = False And bResult)
bResult = wsForm.GetEvent()
If wsForm.GetLastEventType() = WS_EVENT_TEXT_INPUT Then
'Add your code here...
End If
Wend
...
GetEvent | GetLastEventStrValue | GetLastEventIntValue | GetLastEventSourceId | GetLastEventSourceName
WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference
| WireLess Studio by SofToGo S.A. | Visit our site www.softogo.com | Contact us help@softogo.com |