|
|
WireLess Studio Widgets Developer's Guide |
|
Call this method to retrieve the id of the widget that triggered the last event.
SHORT GetLastEventSourceId(void);
GetLastEventSourceId returns the name of the widget that triggered the last event. If no events has been received, GetLastEventSourceName returns -1.
using WirelessStudioOleWidgets;
WStFactory oFactory = new WStFactory();
WStForm oForm = new WStForm ();
short formId = 10;
short radioButtonId = 15;
oFactory.CreateFormById(formId);
oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_RADIO_BUTTON, radioButtonId, "", 15, 15, 30, 30, "Radio Button 1");
oForm.AddObjectBydId(formId, radioButtonId);
oForm.ShowById(formId, true, true);
short objectId = 0;
if( oForm.GetEvent() )
{
objectId = oForm.GetLastEventSourceId();
}
Public wsForm As New WStForm ... Dim objectId as Integer bResult = wsForm.GetEvent() objectId = wsForm.GetLastEventSourceId() ...
GetEvent | GetLastEventStrValue | GetLastEventSourceId | GetLastEventIntValue | GetLastEventType
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 |