Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Progress Bar Popup(Unsure of how to make one appear)
Progress Bar Popup [message #648170] Tue, 11 January 2011 15:24 Go to next message
ouri.maler is currently offline ouri.malerFriend
Messages: 22
Registered: July 2010
Junior Member
I'm currently designing a GUI, and I've been wanting to integrate a progress bar into it, but I'm uncertain of how to proceed.

I've played with the ProgressBar Class, and I've managed to make one appear in one of the GUI's tabs. However, what I want to do is have the progress bar pop up in its own window whenever the relevant action is launched. Several hours of googling later, I'm still not sure how to do that...Are there classes for opening additional windows?
Re: Progress Bar Popup [message #648304 is a reply to message #648170] Wed, 12 January 2011 10:38 Go to previous messageGo to next message
Lakshmi ShanmugamFriend
Messages: 274
Registered: July 2009
Location: India
Senior Member
Hi,

To open a new window you need to create a new Shell and open it (Shell.open()). You can create your progress bar within this shell.
These example snippets will be useful --
The first 4 snippets under Shell show different ways to opening a dialog --> http://eclipse.org/swt/snippets/#shell
Snippets to update progressbar --> http://eclipse.org/swt/snippets/#progressbar

HTH,
Lakshmi


Lakshmi P Shanmugam
Re: Progress Bar Popup [message #648811 is a reply to message #648304] Fri, 14 January 2011 15:48 Go to previous message
ouri.maler is currently offline ouri.malerFriend
Messages: 22
Registered: July 2010
Junior Member
Lakshmi Shanmugam wrote on Wed, 12 January 2011 05:38
Hi,

To open a new window you need to create a new Shell and open it (Shell.open()). You can create your progress bar within this shell.
These example snippets will be useful --
The first 4 snippets under Shell show different ways to opening a dialog --> http://eclipse.org/swt/snippets/#shell
Snippets to update progressbar --> http://eclipse.org/swt/snippets/#progressbar

HTH,
Lakshmi


Thanks a lot!
...Opening a new Shell had actually been one of the first solutions I'd tried, but I'd neglected to call open(). I wasn't certain why it wasn't working, and figured maybe only one Shell could be called at a given time... Embarrassed
Previous Topic:Render problems for custom context menu in OpenGL / SWT
Next Topic:Drawing shapes
Goto Forum:
  


Current Time: Fri Dec 19 04:50:32 GMT 2014

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

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