Showing ProgressBar after hiding it does not work [message #459684] |
Sat, 13 August 2005 07:18 |
Eclipse User |
|
|
|
Originally posted by: sarek.nurfuerspam.de
Hi all,
in our application, we want to display a kind of busy indicator in the
statusbar during long operations. We chose to use a ProgressBar with
style indeterminate:
> this.busyBar = new ProgressBar(comp, SWT.INDETERMINATE)
As you see, the parent is a composite, which holds all elements of the
status bar.
But the busyBar should only show up, if we start a longer operation and
hide, if that operation is finished. Therefore, we initially set it to
> setVisible(false)
To make it show up again we tried to use
> setVisible(true)
followed by a
> comp.layout()
to make sure it really shows up again. But the problem is ... it does
not show up. I can see the place in the composite, where the bar should
be (as the element left of the bar has a broder around it), but the bar
is not shown.
If we Do not hide it after construcing, it shows up until we issue a
setVisible(false) for the first time. From that point it does not show
up again - no matter what we try to do or how often we call
setVisible(true).
Any hint?
TIA
Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
|
|
|
Re: Showing ProgressBar after hiding it does not work [message #460371 is a reply to message #459684] |
Wed, 24 August 2005 13:37 |
Steve Northover Messages: 1636 Registered: July 2009 |
Senior Member |
|
|
You will need to provide a stand alone code snippet for us to debug.
"Christian Riedel" <sarek@nurfuerspam.de> wrote in message
news:ddk6ss$tlj$1@news.eclipse.org...
> Hi all,
>
> in our application, we want to display a kind of busy indicator in the
> statusbar during long operations. We chose to use a ProgressBar with
> style indeterminate:
>
> > this.busyBar = new ProgressBar(comp, SWT.INDETERMINATE)
>
> As you see, the parent is a composite, which holds all elements of the
> status bar.
>
> But the busyBar should only show up, if we start a longer operation and
> hide, if that operation is finished. Therefore, we initially set it to
>
> > setVisible(false)
>
> To make it show up again we tried to use
>
> > setVisible(true)
>
> followed by a
>
> > comp.layout()
>
> to make sure it really shows up again. But the problem is ... it does
> not show up. I can see the place in the composite, where the bar should
> be (as the element left of the bar has a broder around it), but the bar
> is not shown.
>
> If we Do not hide it after construcing, it shows up until we issue a
> setVisible(false) for the first time. From that point it does not show
> up again - no matter what we try to do or how often we call
> setVisible(true).
>
> Any hint?
>
> TIA
>
> Christian
> --
> To reply to this posting directly use the following address and
> remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
|
|
|
Powered by
FUDForum. Page generated in 0.04360 seconds