[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Stop ProgressBar which is running SWT.INDETERMINATE
|
- From: Michael R Head <burner@xxxxxxxxxxx>
- Date: Sun, 27 Jul 2003 01:58:02 -0400
- Newsgroups: eclipse.platform.swt
- Organization: http://zclipse.org
- User-agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!)
On Sat, 26 Jul 2003 13:31:08 +0200, Simon Rutishauser wrote:
> hi,
>
> does anyone know how I can stop a progressbar created like this:
>
> ProgressBar p = new ProgressBar(parent, SWT.INDETERMINATE);
>
> now I'd like to stop it at some time. Just like setting
> p.setRedraw(false), but actually this also prevents the bar from being
> redrawn when it should (another window temporarily before progressbar)
setRedraw() is definitely not what you want.
It sounds like what you want is p.setEnabled(false), but that doesn't seem
to work (at least on linux/gtk2, the progressbar continues to update after
setEnabled(false) is called). Perhaps this is a bug, or maybe my
understanding of what setEnabled() does for a ProgressBar is off.
Could you live with p.setVisible(false), and just have the progressbar
disappear?
> Peschmä
--
http://zclipse.org