+ wxMenuItem* item = FindMenuItemById( id );
+
+ wxCHECK_MSG( item, FALSE, _T("wxMenuBar::IsEnabled: no such item") );
+
+ return item->IsEnabled();
+}
+
+wxString wxMenuBar::GetLabel( int id ) const
+{
+ wxMenuItem* item = FindMenuItemById( id );
+
+ wxCHECK_MSG( item, _T(""), _T("wxMenuBar::GetLabel: no such item") );
+
+ return item->GetText();
+}
+
+void wxMenuBar::SetLabel( int id, const wxString &label )
+{
+ wxMenuItem* item = FindMenuItemById( id );
+
+ wxCHECK_RET( item, _T("wxMenuBar::SetLabel: no such item") );
+
+ item->SetText( label );
+}
+
+void wxMenuBar::EnableTop( int pos, bool flag )
+{
+ wxNode *node = m_menus.Nth( pos );
+
+ wxCHECK_RET( node, _T("menu not found") );
+
+ wxMenu* menu = (wxMenu*)node->Data();
+
+ if (menu->m_owner)
+ gtk_widget_set_sensitive( menu->m_owner, flag );
+}
+
+wxString wxMenuBar::GetLabelTop( int pos ) const
+{
+ wxNode *node = m_menus.Nth( pos );
+
+ wxCHECK_MSG( node, _T("invalid"), _T("menu not found") );
+
+ wxMenu* menu = (wxMenu*)node->Data();
+
+ return menu->GetTitle();
+}
+
+void wxMenuBar::SetLabelTop( int pos, const wxString& label )
+{
+ wxNode *node = m_menus.Nth( pos );
+
+ wxCHECK_RET( node, _T("menu not found") );
+
+ wxMenu* menu = (wxMenu*)node->Data();
+
+ menu->SetTitle( label );
+}
+
+void wxMenuBar::SetHelpString( int id, const wxString& helpString )
+{
+ wxMenuItem* item = FindMenuItemById( id );
+
+ wxCHECK_RET( item, _T("wxMenuBar::SetHelpString: no such item") );
+
+ item->SetHelp( helpString );
+}
+
+wxString wxMenuBar::GetHelpString( int id ) const
+{
+ wxMenuItem* item = FindMenuItemById( id );
+
+ wxCHECK_MSG( item, _T(""), _T("wxMenuBar::GetHelpString: no such item") );
+
+ return item->GetHelp();