WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStForm class reference

GetLastEventType

Call this method to obtain the type of the last event triggered.

Ole declaration

SHORT GetLastEventType(void);

Parameters
Return Value

GetLastEventType returns the type of the last event received. If no events have been triggered, GetLastEventType returns WS_EVENT_INVALID.

Remarks

The available event types are:

Example
C#
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...
}
Visual Basic 6
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
...	
See also

GetEvent | GetLastEventStrValue | GetLastEventIntValue | GetLastEventSourceId | GetLastEventSourceName

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference