]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_menu.cpp
added SetHoverBitmap() and implemented it under wxMSW; extended the docs
[wxWidgets.git] / src / xrc / xh_menu.cpp
index d1bbb25251728736b0f1a05e148b71a895b62a6c..5b13b5be3c9d3d3979877febd0058a77e6940c0b 100644 (file)
@@ -44,12 +44,18 @@ wxObject *wxMenuXmlHandler::DoCreateResource()
 
         wxMenuBar *p_bar = wxDynamicCast(m_parent, wxMenuBar);
         if (p_bar)
+        {
             p_bar->Append(menu, title);
+        }
         else
         {
             wxMenu *p_menu = wxDynamicCast(m_parent, wxMenu);
             if (p_menu)
+            {
                 p_menu->Append(GetID(), title, menu, help);
+                if (HasParam(wxT("enabled")))
+                    p_menu->Enable(GetID(), GetBool(wxT("enabled")));
+            }
         }
 
         return menu;