필터 지우기
필터 지우기

Changing the font displayed in a waitbar

조회 수: 7 (최근 30일)
Joe M
Joe M 2011년 11월 24일
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

채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 24일
wax = findobj(h, 'type','axes');
tax = get(wax,'title');
set(tax,'fontsize',15)
  댓글 수: 1
Joe M
Joe M 2011년 11월 24일
Thank you, Walter! As it turns out, both you and Sven answered my question simultaneously!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Sven
Sven 2011년 11월 24일
It's hidden a little bit:
h = waitbar;
titleHandle = get(findobj(h,'Type','axes'),'Title');
set(titleHandle,'FontSize',24)
  댓글 수: 2
Joe M
Joe M 2011년 11월 24일
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 2011년 11월 25일
Yeah, Walter's annoying like that :)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by