waitbar -> length ot the bar figure?

流过昼夜 提交于 2019-12-23 10:20:03

问题


This is probably something trivial, but how can I control the width of the bar figure inside the waitbar ?

My problem is, that when I use the 'Position' property, I can expand only the waitbar, but not simultaneously the bar figure inside it.

So, how is this made ?

hWaitb = waitbar(0,'Titel','Position',[x y width height]);

Than probably I would make

childrenWaitb = get(hWaitb, 'Children');

but what then?


回答1:


The OP found the solution himself, see comments above:

childrenWaitb = get(hWaitb, 'Children'); 
set(childrenWaitb, 'Position',[xWait yWait widthBarFigure heightBarFigure]);


来源:https://stackoverflow.com/questions/9018358/waitbar-length-ot-the-bar-figure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!