MATLAB: Change the name of cancel button in waitbar

waitbar

The term "cancel" is different than "stop". For me, "cancel" means "forget whole the calculations", while "stop" means "save the calculations up to now".
Is it possible to customize the string of "cancel button"? I'd like to change its name to "stop".
Thanks a lot

Best Answer

If you are adding the cancel button by using the CreateCancelBtn option of waitbar(), then record the handle that is output from waitbar(), and then...
t = get(WaitBarHandleGoesHere, 'children');
set(t(2), 'String', 'Stop')
Related Question