How to create an GUI with a frame in a frame?

2 views (last 30 days)
I already made a GUI(called MAIN) with just two objects, a pushbutton(to let take place a desired action) and a pop-up-menu (this one to provide users with a set of options). When users choose an option by pop-up-menu, I created in the workspace a 'control flow' using a common switch statement(case1,case2,..) and i used global variables, at the beginning than changed with handles (guidata) to share some variables between the function of my program and to pass from my MAIN frame to a SECONDARY frame, depending on the choice that the user maid with pop-up-menu: so the users make a choice in the 'MAIN Panel' and a SECOND one will open up. Said that, the problem is that there isn't communication after the choice between the both, so I'd like to create a GUI with the MAIN panel (the panel on the choice) incorporated in the same frame (i mean the same panel) of the secondary one . I going to try to explain it better: i want the main frame (the one with pop-up-menu and push-button)on the top of the panel that are stable and when i make a choice in the same panel appear underlying the Main panel a Secondary one that depends on the choice i made,i.e.if i choose option1, from pop-up-menu in the main panel,appear on the screen(underlying the main panel) an other panel, if i choose option 2 took place in the same place where the the firth secondary panel was, another seconday frame, different from the firth one cause i changed my option..an so on. both main panel and secondary panel have to stay in the same frame(panel)and i want that they can communicate each other when i change option from pop-up-menu. The main one will be immovable on he top, the secondary one will be changeable depending on the main one and the choice that i made. I hope i was clear enough. Thanks

Answers (1)

Image Analyst
Image Analyst on 1 Jul 2014
You can set the visible property of most controls to make them appear or disappear. That should allow you to do what you want.
  2 Comments
Image Analyst
Image Analyst on 1 Jul 2014
LetGion's reply moved here since it's not an answer to her original question:
Thank you. Actually i don't want just to let them appear and disappear, i would like that the main interface communicate in a way with a second one that is called by my multiple object options. And all this stuff should stay in the same frame (panel), so when i change option changes the panel relevant the choice that i made..i don't know if i have been clear..so sorry

Sign in to comment.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!