Problem with panel in GUI
3 ビュー (過去 30 日間)
古いコメントを表示
Hello! I created a GUI with Matlab, and it perfectly works. Then, I decided to create a panel and put all the stuff into the panel, but like this the GUI program doesn't work anymore when I run it (I mean, I still see all the commands but they don't work). What shall I do ?
0 件のコメント
回答 (1 件)
Image Analyst
2014 年 8 月 23 日
Somehow they lost the association with their callbacks. If you right click on a control and say to view its callback, where does it put you in the m-file? On a brand new empty callback function? Or on the original callback function you wrote?
3 件のコメント
Image Analyst
2014 年 8 月 23 日
I don't know what you did (click and drag or cut and paste) but I don't think they should lose their callbacks. Even if you change their name (tag) it will keep their callbacks. I think you should create a small test GUI and demonstrate how the callbacks get lost. If you have Windows use PSR.exe to capture screenshots into a zip file, and post the zip file here or send it to the Mathworks.
Jason
2014 年 8 月 23 日
If you dragged the controls, they shouldn't lose their callbacks. But if you cut and paste or copy them into the panel, they will lose the callback.
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!