Effacer les filtres
Effacer les filtres

CaretPositionChanged callback for editbox not working

1 vue (au cours des 30 derniers jours)
Niko
Niko le 24 Juil 2014
Commenté : Geoff Hayes le 25 Juil 2014
Hi all,
I'm trying to detect when the position of the cursor in an editbox changes. This is the current code I'm using in the figure's opening function:
jEdit=findjobj(myEditbox);
set(jEdit, 'CaretPositionChangedCallback', @myCallback);
But for some reason it doesn't work. Other callbacks such as InputMethodtextChangedCallback works fine, but that's not what I need.
Does anyone know how to fix it?
Thanks a lot!
Niko
  1 commentaire
Geoff Hayes
Geoff Hayes le 25 Juil 2014
I saw a couple of Java-only posts that indicated that they had the same problem with this event. The solution was to use a document listener which may not be applicable here for this undocumented (and so unsupported) MATLAB callback.
Out of curiosity, what are you trying to accomplish by using this event? Perhaps there is an alternative?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by