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!