MATLAB: Popup Menu visibility in MATLAB GUI matlab guipopup menu How can I make the property of a popup menu invisible by pressing a button? Thankx. Best Answer set() the Visible property of the uicontrol to 'off' Related SolutionsMATLAB: How to reset toggle buttons with a push button push buttton callback:set(handles.togglebutton1,'value',0);set(handles.togglebutton2,'value',0); MATLAB: Ho to make a popup box enable/disable visibility of textbox You need to add a callback that checks for the value of your dropdown menu and edits the enable value of your edit textbox. As we do not know the structure of your code here is a small example how you would approach it:function exampleGuihandles = struct;hFig = figure;handles.dropdown= uicontrol('Parent', hFig,... 'Style','popupmenu',... 'String',{'Can edit 1', 'Can edit 2', 'Cannot edit 1', 'Cannot edit 2'},... 'Units','normalized',... 'Callback', @onEditDropdown,... 'Position',[0.1 0.4 0.2 0.2]);handles.textbox = uicontrol('Parent', hFig,... 'Style','edit',... 'Units','normalized',... 'Position',[0.4 0.4 0.5 0.2]);function onEditDropdown(src,event) if src.Value>2 handles.textbox.Enable = 'off'; else handles.textbox.Enable = 'on'; endendend Related QuestionHow to make push buttons in GUI that are unable to be pressed until another push button is pressedSet Editbox visibility to onConnected Pop-upsDo the UIControls inside the UIPanels flicker when the GUI first opens in MATLAB 7.7 (R2008b)GUI checkbox set visibility
Best Answer