Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Indeterminate Progress Bars


I would like to propose that SWT support native indeterminate progress bars (A progress bar widget where the total amount of work/time remaining is unknown). SWT currently supports this notion through the custom widget AnimatedProgress (used by JFace's ProgressIndicator), but a number of platforms (Win XP, Mac OS X) now provide native widgets with a specific look and feel.

Possible solutions are:
a) Add a style bit to ProgressBar indicating that the ProgressBar will be rendered indeterminate (SWT.INDETERMINATE perhaps), and if this bit is set, calls to ProgressBar.setMaximum, ProgressBar.setMinimum, and ProgressBar.setSelection have no visible effect
b) Consider ProgressBar.setSelection (-1) to place the ProgressBar into indeterminate rendering mode, where calls to ProgressBar.setMaximum and ProgressBar.setMinimum have no visible effect.

AnimatedProgress could be deprecated, and ProgressIndicator could be easily altered to support these changes.

Comments from the community?
Chris

Back to the top