You find many many solutions in the FileExchange:
E.g.:
- https://www.mathworks.com/matlabcentral/fileexchange/4401-sbprogress
- https://www.mathworks.com/matlabcentral/fileexchange/16663-simple-waitbar
- https://www.mathworks.com/matlabcentral/fileexchange/14583-uicomponent-expands-uicontrol-to-all-java-classes
- https://www.mathworks.com/matlabcentral/fileexchange/26284-tooltip-waitbar (This seems suitable, when you mention a "textbox")
- https://www.mathworks.com/matlabcentral/fileexchange/14773-statusbar