anyway to call checkbox in appdesigner programmatically?
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Yu Li
      
 el 12 de Sept. de 2019
  
    
    
    
    
    Comentada: Fabian Schnurre
 el 3 de Dic. de 2023
            Hi:
    is there anyway to call checkbox in appdesigner programmatically?
Thanks!
Yu
2 comentarios
  Lewis Maina
 el 27 de Mzo. de 2020
				yes ,  below is a section of my code which unticks ShowMultiplicationDivisionOptionsCheckBox.Value programmatically.
hope this helps you
 function ShowAdvancedOptionsCheckBoxValueChanged(app, event)
            value = app.ShowAdvancedOptionsCheckBox.Value;
            switch value
                case 0
                case 1
                    app.ShowMultiplicationDivisionOptionsCheckBox.Value = false;
                    end
  Fabian Schnurre
 el 3 de Dic. de 2023
				How does this work on a tree checkbox? there are no values for nodes
Respuesta aceptada
  Ajay Pattassery
    
 el 17 de Sept. de 2019
        I assume that you have already created a checkBox in app-designer, and you want to check or uncheck the checkBox programmatically. 
 You could set the value of CheckBox.Value to one for checking the box and toggling to zero to uncheck the box. 
app.CheckBox.Value = 1; 
(In the above example, CheckBox handle is stored in the structure app) 
2 comentarios
  Adam
      
      
 el 17 de Sept. de 2019
				Have your checkbox callback call a new function, passing in the checkbox value and have your other code call that same function.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Desktop 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!