How to keep menu open when selecting option
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Jonas Steiner
 el 17 de Nov. de 2021
  
    
    
    
    
    Comentada: Adam Danz
    
      
 el 19 de Nov. de 2021
            I  want to use the Menu Bar in Matlab App Designer as a Prefrence Tab, where multiple options can be checked/unchecked without closing the menu. 
The default callback seems to always close the Menu when selecting any option.
f = uifigure();
supM = uimenu(f,'Text', 'SuperMenu 1');
subM_1 = uimenu(supM, 'Text', 'SubMenu 1'); % Option 1
subM_2 = uimenu(supM, 'Text', 'SubMenu 2'); % Option 2
Now i know how to toggle the checked option of the uimenu elements on 'Selecting' the respective element, but I do not know of any method to keep the SupMenu open when selecting one of the SubMenu elements.
0 comentarios
Respuesta aceptada
  Adam Danz
    
      
 el 17 de Nov. de 2021
        I have also found this default beahvior frustrating but I do not know a way to keep the menu open after making a selection.  I suggest submitting an enhancement request to tech supporting using the link below. 
4 comentarios
  Adam Danz
    
      
 el 19 de Nov. de 2021
				Creative workaround.  I suppose the only reason to move the checkbox is to not see it in Design View within AppDesigner.
You may want to look into using tabs 
Más respuestas (0)
Ver también
Categorías
				Más información sobre Develop Apps Using App Designer 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!

