4.5 | 2 ratings Rate this file 9 Downloads (last 30 days) File Size: 23 KB File ID: #37309
image thumbnail




26 Jun 2012 (Updated )

Display multiple waitbars in a single figure.

| Watch this File

File Information

MultiWaitBar creates a one or two-dimensional grid of waitbars in a single figure window. Titles and bar colors can be individually modified. Each bar is an instance of the WaitBarAxes class. The WaitBarAxes objects can be passed to functions or objects for updates without knowledge of their position in the grid. This download includes MultiWaitBar.m, WaitBarAxes.m and two demonstration programs. Thanks to Sviatoslav Danylenko for suggestions.

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
20 Aug 2014 Eddie Smo

Hi David,

I really like your app, and I also have some suggestions that I have implemented on my end successfully:

1) Added options to change the figure title, icon, etc.
2) Added the command 'CloseLast' which closes the last panel that was added.
3) Support multi-line labels.
4) refer to panels by their numbers (i.e. multiWaitbar(3, 'Close');

Finally, I think I have found a bug:
The callback for the panel cancel button is defined once, when the panel is created. Later, if the label is renamed using the 'Relabel' command, the cancel button stops working. I have fixed it on my end by adding the line:

entries(idx).Label = values{ii};
set(entries(idx).CancelButton, 'Callback',@(src,evt) iCancelEntry(src, entries(idx).Label))

Again, your app is great, and I would gladly give it a 5 with just some minor improvements :)

20 Jun 2013 Sviatoslav Danylenko

Hello, David

Your MultiWaitBar is cool, but I found one issue on linux. It's continuously steals focus from other windows. To avoid this you can remove string with 'axes()' in `WaitBarAxes` class. And than you should add string `drawnow` after before 'if ~self.isVisible'


01 Jul 2013

Improved Linux compatibility. No longer steals focus from other windows.

Contact us