Update Edit Box in GUI
이전 댓글 표시
I am making a GUI to operate a magnet field controller. I have an editable text box to enter field values, and it works when entering values from the computer keyboard. However, I also have a number pad on the GUI to update the text box that way, however, if I have to enter a value such as 200, when I enter the numbers to append on they replace the current value and only display one number at a time. Is there some way to tell the box to hold the numbers?
Thanks
Umar
채택된 답변
추가 답변 (1개)
Image Analyst
2016년 3월 7일
편집: Image Analyst
2016년 3월 7일
0 개 추천
If the number in the edit field is highlighted, then yes, typing anything (like a number) will replace the text that's in there. Typing a second, third, fourth number will append to the existing characters in the edit text box. That's totally normal and how all programs operate. If the edit text is not highlighted, then characters will appear one at a time at the location of the cursor as you type them. Again, totally normal. I guess I don't understand what the problem is.
If you wanted to enter 200 and not show anything until the second 0 is typed (if that's what you meant by "hold the numbers", then that's not how it works. For example how would it know that you're done and not planning on typing another number, like 2001? Plus, it's very disconcerting to the user to type and not see anything show up.
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!