Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Showing ProgressBar after hiding it does not work
Showing ProgressBar after hiding it does not work [message #459684] Sat, 13 August 2005 07:18 Go to next message
Eclipse UserFriend
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 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
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
Previous Topic:SWT Example for 3.2 M1 not up todate
Next Topic:SWT and JWS with HP-UX motif?
Goto Forum:
  


Current Time: Thu Apr 25 05:19:55 GMT 2024

Powered by FUDForum. Page generated in 0.04360 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top