How to restrict the ButtonDown callback to only the UIAxis part of the figure?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I am creating an app which has multiple components in the figure. One of the functionalities I would like to have is to draw some curves in response to clicking on points in the UIAxis part of the figure. It seems that the way to go for this should be done via the UIFigureWindowButtonDown callback, but this executes at times which I don't want it to, e.g. when I am writing down parameters in edit fields.
What would be the recommended workaround?
0 个评论
采纳的回答
Vinayak
2022-10-18
If you observe the documentation closely for the UIFigureWindowButtonDown callback, it executes whenever a uiaxes component is triggered even though uiaxes components do not support the ButtonDownFcn property.
The following documentation link may be helpful in giving more insight about callbacks.
https://www.mathworks.com/help/matlab/ref/matlab.ui.figureappd-properties.html
2 个评论
Vinayak
2022-10-19
Check out the following documentation pertaining to a similar query,
https://www.mathworks.com/matlabcentral/answers/458264-using-windowbuttondownfcn-in-app-designer
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!