Trigger event callback from another event callback

I want to trigger 'CheckedNodesChangedFcn' callback of uitree from 'ButtonPushedFcn' callback of a pusbutton in appdesigner. Can anyone please suggest how to achieve this?

 채택된 답변

Kevin Holly
Kevin Holly 2022년 8월 5일
You can simply write
CheckedNodesChangedFcn(app)
within the 'ButtonPushedFcn' callback

댓글 수: 5

This is not working as the event of 'CheckedNodesChangedFcn' is changing to the event of 'ButtonPushedFcn', when CheckedNodesChangedFcn(app) is being used within 'ButtonPushedFcn' callback.
Can you provide more details of what you are trying to accomplish?
The 'CheckedNodesChangedFcn' is being used to plot (patch plot) checked items in an axes. The 'ButtonPushedFcn' modifies the plotdata, and unchecks some treenodes based on some conditions. I'm trying to update the plots after the plotdata/checked treenodes are modified after clicking the pushbutton.
Arkaniva,
Please see the app attached and let me know if it addresses your question.
It's exactly what I wanted to achieve.
Thank you.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 App Building에 대해 자세히 알아보기

질문:

2022년 7월 28일

댓글:

2022년 8월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by