Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

For example, the 'main menu' user interface has three buttons each labeled with a different level. Whenever button is clicked how do you display that level of the game without creating a new notebook?

share|improve this question

closed as unclear what you're asking by Yves Klett, m_goldberg, Kuba, ciao, Sjoerd C. de Vries Apr 8 '14 at 20:06

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

Hi and welcome to MMA.SE. What is a game? A graphics object? Perhaps you can provide sample code to demonstrate the problem. Functions such as TabView come to mind. –  Pickett Apr 8 '14 at 16:47
Good question, I don't know ;) but there are ActionMenu and PopupMenu you can use, –  Kuba Apr 8 '14 at 17:47

1 Answer 1

For example:

f@x_ := Sin@x;
t = "myBut";
a = Automatic;
Dynamic@Panel[Plot[f@x, {x, 0, 1}, 
                  PlotLabel -> Button[t, (t=""; a=None; f[x_]:=Cos@x), Appearance -> a]], 
             ImageSize -> 300]
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.