Using ButtonDownFcn on textboxes that are on top of an axes
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Walter Roberson
il 30 Mag 2013
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.
Risposta accettata
Walter Roberson
il 31 Mag 2013
In R2013a, all I had to do was turn hittest off for the axes.
0 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!