Aloysius - what are the options? Do you have radio buttons that the user selects which is supposed to launch the new GUI, or do you have push buttons that the user presses to do the same? Please clarify and describe what the following code does (and where it is called from)
pushbutton1_Callback(option1);
option1;
The option1 variable (what type is this?) is passed to a pushbutton callback. Is this a custom callback that you have written? What does calling option1 on its own supposed to do?
Let's suppose that you have your main GUI, MyMainGui and your other GUI named MyOtherGui. If you have a push button on your main GUI that is supposed to launch the other GUI, then you would simply do
function pushbutton1_Callback(hObject,eventdata,handles)
MyOtherGui;
That's it. You would then do the same for the other GUIs that would launch in response to the user action.
Best Answer