필터 지우기
필터 지우기

Why does app.UIAxes.CurrentPoint shift when I scroll in AppDesigner?

조회 수: 2 (최근 30일)
Dc215905
Dc215905 2021년 6월 28일
댓글: J. Alex Lee 2021년 6월 28일
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
Dc215905
Dc215905 2021년 6월 28일
I'm using 2021a.
If I wait a while the problem still persists. It appears that CurrentPoint is taking into account the entire GUI as a whole and not just the UIAxes embedded in the GUI.
Is there an alterantive to CurrentPoint that I can use? I used to use Ginput in GUIDE, but it appears that's not supported in appdesigner.
J. Alex Lee
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개)

카테고리

Help CenterFile 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!

Translated by