Code: Select all
/* this is the menu structure for a sample menu... and it errors..
Core Menu1
Core Menu2
Core Menu3
+ Menu Item 1
+ Menu item 2
- + Sub Menu item 1
- + Sub Menu item 2
- - + Sub Sub MEnu Item 1
- - + Sub Sub MEnu Item 1
*/
void RPG_SuiteFrm::CreateGUIControls(void)
{
//Do not add custom Code here
//wx-devcpp designer will remove them.
//Add the custom code before or after the Blocks
////GUI Items Creation Start
WxMenuBar1 = new wxMenuBar( );
wxMenu *ID_MNU_Core_Menu1_Mnu_Obj = new wxMenu(0);
WxMenuBar1->Append(ID_MNU_Core_Menu1_Mnu_Obj,_("Core Menu1"));
wxMenu *ID_MNU_Core_Menu2_Mnu_Obj = new wxMenu(0);
WxMenuBar1->Append(ID_MNU_Core_Menu2_Mnu_Obj,_("Core Menu2"));
wxMenu *ID_MNU_Core_Menu3_Mnu_Obj = new wxMenu(0);
WxMenuBar1->Append(ID_MNU_Core_Menu3_Mnu_Obj,_("Core Menu3"));
ID_MNU_Core_Menu3_Mnu_Obj->Append(ID_MNU_Menu_Item_1,_("Menu Item 1"),_(""), wxITEM_NORMAL);
ID_MNU_Menu_Item_2_Mnu_Obj->Append(ID_MNU_SubMenu_Item1,_("Sub Menu Item 1"),_(""), wxITEM_NORMAL); // undeclared object, ID_MNU_Menu_Item_2_Mnu_Obj
ID_MNU_SubMenu_Item2_Mnu_Obj->Append(ID_MNU_SubSubMenu1,_("sub sub menu item 1"),_(""), wxITEM_NORMAL);// undeclared object, ID_MNU_Menu_Item_2_Mnu_Obj
ID_MNU_SubMenu_Item2_Mnu_Obj->Check(ID_MNU_SubSubMenu1,true);
ID_MNU_SubMenu_Item2_Mnu_Obj->Append(ID_MNU_SubSubMenu2,_("sub sub menu item 2"),_(""), wxITEM_NORMAL);
ID_MNU_SubMenu_Item2_Mnu_Obj->Enable(ID_MNU_SubSubMenu2,false);
ID_MNU_Menu_Item_2_Mnu_Obj->Append(ID_MNU_SubMenu_Item2,_("Sub Menu Item 2") , ID_MNU_SubMenu_Item2_obj); // undeclared object, ID_MNU_Menu_Item_2_Mnu_Obj
ID_MNU_Core_Menu3_Mnu_Obj->Append(ID_MNU_Menu_Item_2,_("Menu Item 2") , ID_MNU_Menu_Item_2_obj); // undeclared object, ID_MNU_Menu_Item_2_obj
this->SetMenuBar(WxMenuBar1);
this->SetStatusBar(WxStatusBar1);
this->SetSize(0,0,602,200);
this->SetTitle(_("RPG_Suite"));
this->Center();
this->SetIcon(wxNullIcon);
////GUI Items Creation End
}