×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Open a GUI figure from a GUI

Open a GUI figure from a GUI

Open a GUI figure from a GUI

(OP)
Hi!
I have made a GUI with several edit text boxes where you can enter data. When you the Pushbutton a function calculates some stuff with this data and puts the result in a static text box with:

set(handles.statictext,'String',result)

Additionally you can save the figure with the data you entered.
Now I want to make an option of opening the saved figure using the menu of this GUI. This works, but if I want to calculate the data again (push the pushbutton) it does not work. The result can't be put in the static text box. The error displayed is:

       error using set
       Invalid handle

This means the complete handle structure is not available.
The open_callback is:

function open_Callback.....
[filename, pathname]=uigetfile('*.fig','Open')
File = fullfile(filename,pathname);
open(File)

I have tried this out, but it does not work:


function open_Callback.....
[filename, pathname]=uigetfile('*.fig','Open')
File = fullfile(filename,pathname);
open(File)
handles = guihandles

Thanks for your help.

Bye

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources