clicking on data tips option breaks WindowButtonDown callback
23 次查看(过去 30 天)
显示 更早的评论
I'm defining a callback for clicks like this:
app.UIFigure.WindowButtonDownFcn = @(src, ~) disp("asda");
initially, it works just fine. Inside UIFigure i have an axes with some points scattered on it, when i click on the data tip option in the axes toolbar, then the next click does not trigger the callback. Any ideas on why is this happening or how could i debug this?
0 个评论
采纳的回答
Walter Roberson
2024-11-7,22:19
This is expected. Data tips rely upon WindowButtonDownFcn and there can only be one WindowButtonDownFcn active at a time on any component.
You could potentially customize the datatip response to execute your code as well.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!