issue with App Designer and WindowButtonDown callback

3 ビュー (過去 30 日間)
Thomas Fournier
Thomas Fournier 2021 年 6 月 24 日
回答済み: T.Nikhil kumar 2024 年 2 月 14 日
Hello,
I need to display a point coordinate in a scatter plot, it works well, I just have to hover my cursor over it:
However, I also need to know my cursor's position when i clic, to do so I created a WindowButtonDown callback on the UIFigure.
But now my point's coordinate doesn't show anymore when I hover my mouse over it,
Do you have any idea where the problem can come from?
I recreated the issue in the attached file
Thank you for your help!

回答 (1 件)

T.Nikhil kumar
T.Nikhil kumar 2024 年 2 月 14 日
Hello Thomas,
I acknowledge that you are unable to know your cursor’s position after creating a ‘ButtonDownFcn’ callback.
I would recommend you to try this method out:
  1. Click on the ‘datatip’ tool on the top right of the figure.
  2. Now, you can hover over the point to view the coordinates data in a box (datatip).
It might be possible that the new ‘ButtonDownFcn’ callback overrides the existing method of click-or-hover to view the datatip.
Refer to the documentation attached to understand more about ‘datatip’ tool:
Hope this helps!

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by