How to label an "Edit Text" Box. I have created a edit text box to enter the resistance value for an op-amp but however i am unable to provide the unit of resistance as its label.I have given a sample of what I want in a screenshot attached to this q
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Nahiduddin Mohammad Musa
el 2 de En. de 2017
Respondida: Niels
el 2 de En. de 2017
As you can see the Vin,Vin 2 andd the rest of the labels being assigned to each edit box . I want to use the same thing in my GUI but how do I do it?
1 comentario
John D'Errico
el 2 de En. de 2017
As you can see? Your eyes must be better than ours. :)
Why cannot you write any label there that you want?
Respuesta aceptada
Niels
el 2 de En. de 2017
Hi Mohammad,
if you create an edit box and want additionally that the Name of the Variable you enter in there to be shown in the Gui:
create a static txt and position it in front of the edit box.
Set the String property to the name u want it to have.
You can get the value of edit box within the callback function and name it there whatever you want. The text that you can see in the window has nothing to do with its name (in the first place it is just for the user to know what he might change whenever he enters something in the edit box.)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!