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?

 采纳的回答

Steven Lord
Steven Lord 2015-9-2

0 个投票

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 个评论

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!

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by