ToolBar Buttons do not function

If I open my GUI from the folder where it is located, the tool bar buttons do not function. The toolbar is there but pressing the button does nothing.
However, the buttons do work when I press new, then GUI, then open existing GUI, and select the same GUI. Why does the coding work in this method but not the other?

 Accepted Answer

Steven Lord
Steven Lord on 2 Sep 2015
How are you opening the GUI in the first case? Are you double-clicking the figure file or opening it with OPENFIG or do you run the GUI function?

4 Comments

I was opening the fig file. I ended up manually coding each button, instead of using the defaults and that ended up solving the issue. So I am curious to as if there is a problem with their defaults right now. So if anyone else has this issue, change the buttons manually!
To start a GUIDE-generated GUI, you MUST run the function file. Running the function file initializes the GUI; opening the figure file alone skips that initialization.
Hmm well the way I opened it still worked for me perfectly
thanks for the help though! I just wanted my GUI to be opened in any form in case they have no experience with Matlab!

Sign in to comment.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!