ListBoxValueChanged callback doesn't get called when I change value.

10 ビュー (過去 30 日間)
Nando
Nando 2024 年 3 月 21 日
移動済み: Voss 2024 年 3 月 21 日
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
Voss 2024 年 3 月 21 日
移動済み: Voss 2024 年 3 月 21 日
Make sure that function is in fact the callback of the listbox:
  1. In App Designer, Design View, select the listbox
  2. In the Component Browser in the right side panel, click Callbacks and see what the ValueChangedFcn is
If the ValueChangedFcn is not DatenListBoxValueChanged, then enter or select DatenListBoxValueChanged in the ValueChangedFcn box.
Nando
Nando 2024 年 3 月 21 日
移動済み: Voss 2024 年 3 月 21 日
Thank you for your answer!
But I don't think that's it. The callback should be correct
Design View:
Edit: I added the Design view

サインインしてコメントする。

採用された回答

Nando
Nando 2024 年 3 月 21 日
Closing MatLab (not just the App) and opening it again did the trick..
Good old reliable "Turning it off and on again"

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by