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 ?

답변 (1개)

Image Analyst
Image Analyst 2014년 8월 23일

0 개 추천

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

aurc89
aurc89 2014년 8월 23일
You're right: it creates new empty callback functions! Is there a way to put everything into a panel without losing the associations ?
Image Analyst
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
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2014년 8월 23일

댓글:

2014년 8월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by