I am using a pop-up menu uicontrol object to change its background color based on the selection. I would like to have the background color change immediately after the option is chosen. This currently does not happen because, when the option is chosen, the default highlighting color is blue and once I click somewhere else in the figure window, the change is reflected. I essentially want the change be reflected as soon as I select an option in the popupmenu i.e. on mouse click, the background color should change.
MATLAB: How to use the pop-up menu uicontrol object to change the background color of the pop-up menu immediately after an option is selected from the menu
backgroundcolorguihighlightMATLABpopupmenu
Best Answer