Using ButtonDownFcn on textboxes that are on top of an axes
12 ビュー (過去 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.
採用された回答
Walter Roberson
2013 年 5 月 31 日
In R2013a, all I had to do was turn hittest off for the axes.
0 件のコメント
その他の回答 (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!