The document discusses code for a pop-up menu with two options ("Ideal situation" and "Realistic situation") that is intended to control the visibility of two impact boxes. When "Ideal situation" is selected, the boxes should be hidden, and when "Realistic situation" is selected, they should be shown. However, the code written is not working as intended, with the boxes remaining visible for both menu selections. The author is asking for help identifying the mistake in their code.
Original Description:
hl
Original Title
Nice i Learnt a Lot More Than What My So Called Professor Did in My Cours
The document discusses code for a pop-up menu with two options ("Ideal situation" and "Realistic situation") that is intended to control the visibility of two impact boxes. When "Ideal situation" is selected, the boxes should be hidden, and when "Realistic situation" is selected, they should be shown. However, the code written is not working as intended, with the boxes remaining visible for both menu selections. The author is asking for help identifying the mistake in their code.
The document discusses code for a pop-up menu with two options ("Ideal situation" and "Realistic situation") that is intended to control the visibility of two impact boxes. When "Ideal situation" is selected, the boxes should be hidden, and when "Realistic situation" is selected, they should be shown. However, the code written is not working as intended, with the boxes remaining visible for both menu selections. The author is asking for help identifying the mistake in their code.
nice i learnt a lot more than what my so called professor did in my cours .
thanks for this video
Responder
MONZER JAMAL ELDINHace 5 meses. (editado)
can you help me with this problem, I have a pop_up menu and in this menu I have two choices (Ideal situation and realistic situation) and i have two boxes (impact1 and impact2). When the user chose Ideal situation I want the boxes to be hidden, while if he chose Realistic situation then the boxes will be unhidden. The tag for pop_up menu is (situationmenu). switch situationmenu case 'Ideal situation' set(handles.impact1, 'Enable' ,'Off') set(handles.impact2, 'Enable', 'Off') otherwise 'Realistic situation'; set(handles.impact1, 'Enable', 'On') set(handles.impact2, 'Enable', 'On') end After I wrote this code, the boxes still enable for both situations. So can you tell me where is my mistake. Ms informacin Responder
francisco tomazHace 6 meses.
How do you make the menu open again after selecting the option?