TabGroup: How to execute code before selection changed?
이전 댓글 표시
Hi,
I've written a GUI with a TabGroup that has five tabs. If the user makes some changes to data on Tab1 and then changes to Tab2 I would like to execute some code before the Tab changes. I've added a SelectionChanged callback to my TabGroup and tried to put the code to be executed there, but then it is executed after the Tab changed. So I would like to have following order: (1) user clicks on new tab, (2) execute some code, (3) change to new selected tab.
I'm using Matlab R2020b.
Thank you very much!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!