[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

On Sun, 27 Jul 2003 01:58:02 -0400, Michael R Head wrote:

> 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.
> 

I just checked this out with a native GTK app, and the progress bar
doesn't seem to honor the gtk_widget_set_sensitive call, so
ProgressBar.setEnabled() can't work under GTK.

My suggestion would be to either use setVisible() or swap out the
SWT.INDETERMINATE progress bar for a standard progress bar when you want
to show that the process is complete.  (that is, use the indeterminate one
while the process is proceeding, but when the process is complete, remove
the indeterminate one and add a determinate one with
setSelection(getMaximum()) or thereabouts.

mike

> 
> 
>> Peschmä

-- 
http://zclipse.org