Changing the font displayed in a waitbar

Please consider:
h=waitbar(0, 'Please wait...')
for i=1:1000
waitbar(i/1000)
end
close(h)
Could someone please tell me how to change the font type and font size of the displayed message, 'Please wait...', in the waitbar?
Thank you for your consideration!
Best Regards,
JM

 Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Nov. de 2011
wax = findobj(h, 'type','axes');
tax = get(wax,'title');
set(tax,'fontsize',15)

1 comentario

Joe M
Joe M el 24 de Nov. de 2011
Thank you, Walter! As it turns out, both you and Sven answered my question simultaneously!

Iniciar sesión para comentar.

Más respuestas (1)

Sven
Sven el 24 de Nov. de 2011
It's hidden a little bit:
h = waitbar;
titleHandle = get(findobj(h,'Type','axes'),'Title');
set(titleHandle,'FontSize',24)

2 comentarios

Joe M
Joe M el 24 de Nov. de 2011
Thank you, Sven! Your answer arrived coincident with Walter's -- the exact same answer as it turned out. I really appreciate the assistance from both of you!
Sven
Sven el 25 de Nov. de 2011
Yeah, Walter's annoying like that :)

Iniciar sesión para comentar.

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 24 de Nov. de 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by