# How can I include a popup menu in my wizard's content?

I'm trying to create a wizard that enables the user to choose between different shaft components. At the same time, I need a flag to be 1 if he chooses a bearing and 0 otherwise. I extended the example code from one of the GUIKit help pages which you can find here:

ref = GUIRun[
Widget["WizardFrame", {
"wizard" -> Widget["Wizard", {
"title" -> "Shaft sections",
"pages" -> {
Widget["WizardPage", {
"title" -> "Select the main feature of this section: ",
"content" -> Widget["Panel", {Widget["WizardHTMLPanel"]

Dynamic[flag[1]], {0 -> coupling, 0 -> shoulder,
1 -> bearing, 0 -> gear, 0 -> pulley}]
}]
}]
}
}]
}]]
GUIScreenShot[ref]


The program says that the GUI definition contains invalid content. Help??

-
Hello user13809, what version of Mathematica are you using? –  Kuba Apr 18 at 20:26
the latest.. 9.0 –  naderistics Apr 18 at 20:27
I don't think you can use PopupMenu`, which is not part of GUIKit, but belongs to the newer dynamic GUI tools that first appeared in V.6. I think GUIKit uses Java for its widgets, but the new GUI widgets are native to Mathematica. They can not be intermixed, at least not casually. –  m_goldberg Apr 18 at 23:07