Hourglass indicator looks (msdn)
The following example overrides the clicked method on a form control to refresh the database log.
- Call the startLengthyOperation method when the operation starts.
- Call the endLengthyOperation method when the operation ends.
Both of these methods are on the Global application class.
The hourglass pointer is displayed until you call the endLengthyOperation method.
void clicked() { super(); startLengthyOperation(); sysDatabaseLog_ds.research(); endLengthyOperation(); }
Use a progress indicator during operations that take more than 2 seconds.
- Use an hourglass mouse pointer if the process takes 2-7 seconds.
- Use a progress bar if the process takes 8 seconds or more.