WireLess Studio Widgets Developer's Guide |
Call this method to display an hourglass in the middle of the screen on a specific form.
VARIANT_BOOL ShowWaitCursorById(SHORT usFormId, VARIANT_BOOL bShow);
VARIANT_BOOL ShowWaitCursorByName(LPCTSTR sFormName, VARIANT_BOOL bShow);
On success, ShowWaitCursor returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
Because this is a method that affects a specific form, the cursor will be hidden if a new form is displayed. The cursor will be restored if this method is called again on that form.
using WirelessStudioOleWidgets; WStFactory oFactory = new WStFactory(); WStForm oForm = new WStForm (); short formId = 10; short lineId = 15; oFactory.CreateFormById(formId); oForm.SaveToTerminalById(formId); oForm.ShowById(formId, true, true); oForm.ShowWaitCursorById(formId, true); oForm.CommitChangesById(formId); /* Do a lengthy operation (which doesn't show another form) */ oForm.ShowWaitCursorById(formId, false); oForm.EndCurrentForm();
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 |