exitFcn of iptSetPointerBehavior doen't seems work properly for pointer type

10 ビュー (過去 30 日間)
Jaeseok
Jaeseok 2022 年 3 月 22 日
回答済み: Shivansh 2023 年 1 月 5 日 4:23
obj_1 = rectangle('Position', [1,1,1,1], 'FaceColor', [0,0,0]);
obj_2 = line([3,3],[1,2]);
xlim([0,4])
ylim([0,3])
pb.enterFcn = @(fig,cp) set(fig, 'Pointer','fleur', 'Name', 'over object');
pb.exitFcn = [];
pb.traverseFcn = [];
iptSetPointerBehavior([obj_1,obj_2],pb);
iptPointerManager(gcf)
Please run code above.
If you move pointer on reactangle or line, pointer turns to fleur and figure title to over object.
When pointer move out of 'obj_1' or 'obj_2,' it turns back to 'arrow' automatically.
Obviously there is no 'exitFcn' defined.
The pointer expected to remain 'fleur' as the fig name 'over object' does.
Why this happens?
I need to keep fleur pointer as expected.
  2 件のコメント
Jaeseok
Jaeseok 2022 年 12 月 7 日
Still no answer???? ㅠㅠ

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

採用された回答

Shivansh
Shivansh 2023 年 1 月 5 日 4:23
Thank you for pointing out this bug. The bug has been reported to the concerned team.There is issue in setting pointer parameter of 'exitFcn' but all other parameters of 'exitFcn' is working as intended.

その他の回答 (0 件)

カテゴリ

Find more on Contour Plots in Help Center and File Exchange

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by