Thread Subject: GUI inside a function

Subject: GUI inside a function

From: Eyal

Date: 3 Sep, 2009 05:30:20

Message: 1 of 2

I'm trying to use a GUI inside a M-file function.
I want the function to wait until an exit button is used on the GUI. Once the exit button is pushed I want to save the information from the GUI handle and than close the GUI.

Can anyone give me any suggestions how to start?

Thanks you.

Subject: GUI inside a function

From: Kris Goodwin

Date: 3 Sep, 2009 06:31:03

Message: 2 of 2

Try defining the figure's CloseRequestFcn as 'myCloseRequestFcn' (arbitrary name) in the property window, then set up that function to do whatever you need to do in the code.

Tags for this Thread

Everyone's Tags:

gui

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
gui Sprinceana 3 Sep, 2009 10:35:44
rssFeed for this Thread

Contact us at files@mathworks.com