How can I make waitbar in matlab modal
===

I am working on a MATLAB GUI where I have to show a progress bar..I have two problems with the 'waitbar' function.  
1.I want to make the progress bar modal, so that user can't do any other thing on the GUI while the progress bar is shown.  
2.There is the minimize button and the close button at the top right corner of the bar(pretty much like any other window). If you press the close button, the progress bar closes, I want this button to be hidden or disabled so that the user can't close the bar.


