MATLAB: Freeze Main Window (Guide)

matlab gui

Hello
I have a guide1 on which there is an 'About' button
When the user clicks it another guide opens lets say guide2
I want to freeze the position of guide2 above guide1 and deny the user from clicking on guide1 till he closes guide2
Any ideas?
Thank you

Best Answer

set the figure WindowStyle to modal