Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Merging GUI

Subject: Merging GUI

From: M Paheerathan

Date: 27 Oct, 2010 10:10:05

Message: 1 of 3

I have developed two GUI programs separately. I would like to merge together

One GUI as a main one and other one as a Sub GUI(It means, If I click a button in the first GUI,this GUI will be loaded) of the first one.

How to do this? Please help me

Thanks in Advance,

Best Regards,
Paheerathan

Subject: Merging GUI

From: Sean

Date: 27 Oct, 2010 13:48:04

Message: 2 of 3

"M Paheerathan" <mp.mscproject@yahoo.com> wrote in message <ia8tpt$kqm$1@fred.mathworks.com>...
> I have developed two GUI programs separately. I would like to merge together
>
> One GUI as a main one and other one as a Sub GUI(It means, If I click a button in the first GUI,this GUI will be loaded) of the first one.
>
> How to do this? Please help me
>
> Thanks in Advance,
>
> Best Regards,
> Paheerathan

Call the second GUI's function from the first one.

in GUI1

function open_other_GUI_button_callback(stuff)

GUI2;

Where GUI2 is the name of your second one.

Subject: Merging GUI

From: Steven_Lord

Date: 27 Oct, 2010 13:52:51

Message: 3 of 3



"M Paheerathan" <mp.mscproject@yahoo.com> wrote in message
news:ia8tpt$kqm$1@fred.mathworks.com...
> I have developed two GUI programs separately. I would like to merge
> together

Define "merge" in this context.

> One GUI as a main one and other one as a Sub GUI(It means, If I click a
> button in the first GUI,this GUI will be loaded) of the first one.

So just call the function for the second GUI from the callback function of
the first, using UIWAIT or something similar if you need the first GUI to
wait for the user to close the second GUI to proceed.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us