Why does app.UIAxes.CurrentPoint shift when I scroll in AppDesigner?
古いコメントを表示
I use "UIFigureWindowButtonUp(app, event)" to let user click on the UIAxes which will then plot a vertical line when they click.
For whatever reason, the verical plot has an offset if I scroll in the GUI and then click.
I am using "app.UIAxes.CurrentPoint" in order to indicate where along the x-axis the vertical line should be placed.
Any sugestions?
3 件のコメント
J. Alex Lee
2021 年 6 月 28 日
what version of matlab are you using? it used to be that if you had a uiaxes embedded inside a tab layout or something that the CurrentPoint would not be accurate...no idea if it is related.
do you get the correct result if you scroll, then wait a while, and then click?
Dc215905
2021 年 6 月 28 日
J. Alex Lee
2021 年 6 月 28 日
hmm, that's weird. my issue was in an older version, like 2018b or something, but it was pretty specific to a tab layout or gridlayout or something...maybe it's a bug (again) and mathworks team can investigate
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Display and Exploration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!