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:
parent
c69279ef70
commit
58751a8685
@ -148,7 +148,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
|
|||||||
UMAInsertMenuItem(MAC_WXHMENU(m_hMenu), wxT("a") , 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->UpdateItemText() ;
|
||||||
pItem->UpdateItemBitmap() ;
|
pItem->UpdateItemBitmap() ;
|
||||||
pItem->UpdateItemStatus() ;
|
pItem->UpdateItemStatus() ;
|
||||||
|
@ -435,9 +435,9 @@ void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxAcceleratorEntr
|
|||||||
|
|
||||||
void UMAInsertMenuItem( MenuRef menu , const wxString& title , MenuItemIndex item , wxAcceleratorEntry *entry )
|
void UMAInsertMenuItem( MenuRef menu , const wxString& title , MenuItemIndex item , wxAcceleratorEntry *entry )
|
||||||
{
|
{
|
||||||
MacInsertMenuItem( menu , "\p" , item) ;
|
MacInsertMenuItem( menu , "\pA" , item) ;
|
||||||
UMASetMenuItemText(menu, item , title );
|
UMASetMenuItemText(menu, item+1 , title );
|
||||||
UMASetMenuItemShortcut( menu , item , entry ) ;
|
UMASetMenuItemShortcut( menu , item+1 , entry ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// quickdraw
|
// quickdraw
|
||||||
|
@ -148,7 +148,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
|
|||||||
UMAInsertMenuItem(MAC_WXHMENU(m_hMenu), wxT("a") , 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->UpdateItemText() ;
|
||||||
pItem->UpdateItemBitmap() ;
|
pItem->UpdateItemBitmap() ;
|
||||||
pItem->UpdateItemStatus() ;
|
pItem->UpdateItemStatus() ;
|
||||||
|
@ -435,9 +435,9 @@ void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxAcceleratorEntr
|
|||||||
|
|
||||||
void UMAInsertMenuItem( MenuRef menu , const wxString& title , MenuItemIndex item , wxAcceleratorEntry *entry )
|
void UMAInsertMenuItem( MenuRef menu , const wxString& title , MenuItemIndex item , wxAcceleratorEntry *entry )
|
||||||
{
|
{
|
||||||
MacInsertMenuItem( menu , "\p" , item) ;
|
MacInsertMenuItem( menu , "\pA" , item) ;
|
||||||
UMASetMenuItemText(menu, item , title );
|
UMASetMenuItemText(menu, item+1 , title );
|
||||||
UMASetMenuItemShortcut( menu , item , entry ) ;
|
UMASetMenuItemShortcut( menu , item+1 , entry ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// quickdraw
|
// quickdraw
|
||||||
|
Loading…
Reference in New Issue
Block a user