app.UIFigure.Pointer performs different when debugging

1 回表示 (過去 30 日間)
rocketMan
rocketMan 2022 年 3 月 30 日
回答済み: Githin George 2023 年 10 月 17 日
Hey all,
I am working with App Designer and have UIAxes with an image in it. Now I want to draw something on the image with drawfreehand and immediately afterwards I want to change the Pointer appearance (A small app with my function is attached).
When I run the code, the Pointer appearance does not change. But when I try to debug the code and set the breaktpoint at the line where I set the point value (in the example code line 14), the code works as I want.
Is it an error of mine or is it a bug?
  2 件のコメント
Giovanni Pasini
Giovanni Pasini 2022 年 3 月 31 日
I think it is a bug! I'm struggling with the pointer and drawfreehand! My problem is that the pointer does not go back to arrow after draw freehand interruption with escape key press.
Giovanni Pasini
Giovanni Pasini 2022 年 3 月 31 日
I have this problem only when I set the iptsetpointerbehaviour

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

回答 (1 件)

Githin George
Githin George 2023 年 10 月 17 日
Hello,
I understand you are trying to change the Pointer appearance, but it is only changing when a delay is introduced using a breakpoint.
As a workaround to this issue, you could use the “pause” function after the “drawfreehand” function with a small delay and the move the mouse pointer slightly to get the correct behaviour for pointer.
I hope this helps.

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by