- In App Designer, Design View, select the listbox
- In the Component Browser in the right side panel, click Callbacks and see what the ValueChangedFcn is
ListBoxValueChanged callback doesn't get called when I change value.
4 次查看(过去 30 天)
显示 更早的评论
I want a specific function to get triggered, when I change the Value in a Listbox
my Code:
function DatenListBoxValueChanged(app, event)
fill_table(app)
end
With the debugging functionality "Pause Excecution at Line XX" (==making the line number red) I found out that the Callback doesn't get triggered when I change the value.
How can I fix that?
(I have multiselect enabled if that's relevant)
2 个评论
Voss
2024-3-21
移动:Voss
2024-3-21
Make sure that function is in fact the callback of the listbox:
If the ValueChangedFcn is not DatenListBoxValueChanged, then enter or select DatenListBoxValueChanged in the ValueChangedFcn box.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!