How to get back red waitbar?
Ältere Kommentare anzeigen
In 2014b the waitbar appearance changed from the cool red to an ugly green windows-style one (btw in help documentation it still says "A wait bar is a figure that displays what percentage of a calculation is complete as the calculation proceeds by progressively filling a bar with red from left to right." ).
How can i revert it back to red?
Akzeptierte Antwort
Weitere Antworten (1)
Michael Haderlein
am 12 Nov. 2014
I'm working with 2014a, but if they didn't change the entire waitbar, you should be able to modify the color this way:
h = waitbar(0,'Please wait...');
hc=get(get(h,'children'),'children');
steps = 1000;
for step = 1:steps
pause(0.001)
waitbar(step / steps)
set(hc(2),'facecolor',rand(1,3))
end
close(h)
Warning: Don't run this code too often, it might cause headache ;-)
1 Kommentar
Guillaume
am 12 Nov. 2014
Unfortunately, it doesn't appear to work in 2014b
the child of the waitbar (an axis) does not have any children (that are exposed)
Kategorien
Mehr zu App Building finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!