Change values without press enter key
조회 수: 5 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Walter Roberson
2015년 9월 2일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!