Using ButtonDownFcn on textboxes that are on top of an axes
2 次查看(过去 30 天)
显示 更早的评论
For some reason the buttondownfcn will not work for textboxes that are on top of an axes. I am using the axes for the background image, and am turning hittest off for the axes, and it is still not working. It works the second I get rid of the axes though. Is there any workaround/fix for this?
2 个评论
Walter Roberson
2013-5-30
Is this uicontrol('style', 'text') or is this text() ?
uicontrol are never on top of axes, nor below them: uicontrol are always direct children of figures (or uipanel) rather than being something "drawable" that axes would have reference to.
采纳的回答
更多回答(1 个)
另请参阅
类别
在 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!