Skip to main content



      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 10:24 Go to next message
Eclipse UserFriend
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 05:38 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Progress Bar Popup [message #648811 is a reply to message #648304] Fri, 14 January 2011 10:48 Go to previous message
Eclipse UserFriend
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: Thu Jul 24 14:18:47 EDT 2025

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

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

Back to the top