필터 지우기
필터 지우기

GUI keyboard shortcut without using keypressfcn

조회 수: 9 (최근 30일)
Yukai Xu
Yukai Xu 2022년 8월 22일
댓글: Yukai Xu 2022년 9월 6일
Hello!
I want to create keyboard shortcuts for a GUI program, but it only appears inspector when I attempt to view callbacks, its .m file is not using callback handles to construct the GUI. The reason and solution HERE do not apply to my case. So the methods illustrated HERE are not working.
Is there a way I can create shortcuts without keypressfcn? Maybe by indexing the object tag?
Any help would be highly appreciated!
  댓글 수: 10
Bruno Luong
Bruno Luong 2022년 9월 6일
Can you just load the fig file in GUIDE and uncheck the option 'Generate FIG file only'?
Yukai Xu
Yukai Xu 2022년 9월 6일
Thank you for you advice! @Bruno Luong
Unfortunately, the buttons in my program work with original functions (in the mfile I described with no callbacks), so when MATLAB generates a new mfile for the GUI, I can actually find the callback functions and the buttons are assigned to these callbacks now, but apparently the GUI is controlled by blank functions now and my original mfile is not involving.
Seems I still have to reconstruct the GUI on the new mfile, thank you for all the help!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by