WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStForm class reference

ShowWaitCursor

Call this method to display an hourglass in the middle of the screen on a specific form.

Ole declaration

VARIANT_BOOL ShowWaitCursorById(SHORT usFormId, VARIANT_BOOL bShow);

VARIANT_BOOL ShowWaitCursorByName(LPCTSTR sFormName, VARIANT_BOOL bShow);

Parameters
sFormName
The form's name.
usFormId
The form's id.
bShow
Specifies whether the wait cursor is shown or hidden
Return Value

On success, ShowWaitCursor returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.

Remarks

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.

Example
C#
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();
See also

ShowMessageBox | ShowPopupMsg

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