Borrar filtros
Borrar filtros

Checking a GUI Checkbox 'Value'

16 visualizaciones (últimos 30 días)
Rick
Rick el 25 de Abr. de 2012
Comentada: Ana Silva el 7 de Dic. de 2017
If I have a few Gui checkbox statements, how do I check the values of them to see if they changed from my original default setting ?? Here is what I used for my first checkbox statement:
h.checkbox1 = uicontrol(current_f,'Style','checkbox', 'Value',1)

Respuesta aceptada

Jan
Jan el 25 de Abr. de 2012
Then:
value = get(h.checkbox1, 'Value');
If you want to store the initial value of the checkbox, you could use either the handles struct or the UserData of the uicontrol.
  2 comentarios
Rick
Rick el 25 de Abr. de 2012
Thank you Dude....... You DA Man !!!!!!!!!
Ana Silva
Ana Silva el 7 de Dic. de 2017
how do I get the value from the checkbox after being selected?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by