Change values without press enter key
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
hi everyone, my problem is: i have many edit texts in GUI, some of them are connected with a specific edit text called 'A'. everytime i change value of 'A' i would that all edit texts change dynamically, without press enter key after changed value in 'A'. how can i do? actually works only if i press enter "in A"
0 Commenti
Risposte (1)
Walter Roberson
il 2 Set 2015
You can use uicontrol KeyPressFcn callback to detect text entry, and you call use that callback to set() the String fields of other text boxes and you can drawnow() to have them update. But the one thing you cannot do, at least not without resorting to Java, is to use the KeyPressFcn callback to update the display of the edit box of the item it is a callback for: the current item will not be updated until enter is pressed. (I don't know, maybe you could use the Java Robot to press enter for you.)
0 Commenti
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps 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!