WireLess Studio Widgets Developer's Guide |
Call this method to retrieve the name of the widget that triggered the last event.
BSTR GetLastEventSourceName(void);
GetLastEventSourceName returns the name of the widget that triggered the last event. If no events has been received, GetLastEventSourceName returns an empty string.
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); string sEventSource; if( oForm.GetEvent() ) { sEventSource = oForm.GetLastEventSourceName(); }
Public wsForm As New WStForm ... bResult = wsForm.GetEvent() iIntValue = wsForm.GetLastEventIntValue() sObjectName = wsForm.GetLastEventSourceName() ...
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 |