Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

How to make a GUI Non-active But stays visible.

Asked by Wasim Chamaa on 17 May 2013

There are two GUIs, GUI1 has several buttons one of them is used to run GUI2, and GUI2 has one “OK” button.

The Question:

How to make GUI1 non-active but stays visible when GUI2 is called, and Reversely how GUI1 can go back to be active, when GUI2 is closed.


Wasim Chamaa



No products are associated with this question.

2 Answers

Answer by Jan Simon on 18 May 2013
Accepted answer

1 Comment

Wasim Chamaa on 19 May 2013

Thanks for David and Jan Simon

Jan Simon
Answer by David Barry on 17 May 2013

You could look to set the enabled property of items in your non-active GUI to off or inactive when GUI2 becomes visible.

1 Comment

Wasim Chamaa on 18 May 2013

In the same callback that run GUI2, I can set the enable property of each button in GUI1 to be OFF, but how I can turn them ON when GUI2 is closed.

To simplify the problem:

GUI1 represent the main application window and this window has an “About” button, Once “About” button is pressed the main window will become non active and a small window GUI2 will show up, this small window has only an “OK” button, the user must press the “OK” button before going back to active main window GUI1.

David Barry

Contact us