fix so wxMenu::InsertItem actually inserts rather than overwrites

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2003-06-06 23:46:36 +00:00
parent c69279ef70
commit 58751a8685
4 changed files with 178 additions and 178 deletions

View File

@ -148,7 +148,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
UMAInsertMenuItem(MAC_WXHMENU(m_hMenu), wxT("a") , pos);
}
SetMenuItemCommandID( MAC_WXHMENU(m_hMenu) , pos , pItem->GetId() ) ;
SetMenuItemCommandID( MAC_WXHMENU(m_hMenu) , pos+1 , pItem->GetId() ) ;
pItem->UpdateItemText() ;
pItem->UpdateItemBitmap() ;
pItem->UpdateItemStatus() ;

View File

@ -435,9 +435,9 @@ void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxAcceleratorEntr
void UMAInsertMenuItem( MenuRef menu , const wxString& title , MenuItemIndex item , wxAcceleratorEntry *entry )
{
MacInsertMenuItem( menu , "\p" , item) ;
UMASetMenuItemText(menu, item , title );
UMASetMenuItemShortcut( menu , item , entry ) ;
MacInsertMenuItem( menu , "\pA" , item) ;
UMASetMenuItemText(menu, item+1 , title );
UMASetMenuItemShortcut( menu , item+1 , entry ) ;
}
// quickdraw

View File

@ -148,7 +148,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
UMAInsertMenuItem(MAC_WXHMENU(m_hMenu), wxT("a") , pos);
}
SetMenuItemCommandID( MAC_WXHMENU(m_hMenu) , pos , pItem->GetId() ) ;
SetMenuItemCommandID( MAC_WXHMENU(m_hMenu) , pos+1 , pItem->GetId() ) ;
pItem->UpdateItemText() ;
pItem->UpdateItemBitmap() ;
pItem->UpdateItemStatus() ;

View File

@ -435,9 +435,9 @@ void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxAcceleratorEntr
void UMAInsertMenuItem( MenuRef menu , const wxString& title , MenuItemIndex item , wxAcceleratorEntry *entry )
{
MacInsertMenuItem( menu , "\p" , item) ;
UMASetMenuItemText(menu, item , title );
UMASetMenuItemShortcut( menu , item , entry ) ;
MacInsertMenuItem( menu , "\pA" , item) ;
UMASetMenuItemText(menu, item+1 , title );
UMASetMenuItemShortcut( menu , item+1 , entry ) ;
}
// quickdraw