Ok. On Linux/Gtk, the menu shortcuts in the TreeCtrl like
Code: Select all
m_itemPopup->Append(ID_MNU_DELETE_ITEM, _T("Delete entry\tCTRL+d"), _T(""), wxITEM_NORMAL);
Code: Select all
wxAcceleratorEntry entries[7];
entries[0].Set(wxACCEL_ALT, (int) 'a', ID_MNU_GROUP_ADD_GROUP);
...
entries[2].Set(wxACCEL_CTRL, (int) 'c', ID_MNU_CLIPBOARD_ITEM);
entries[3].Set(wxACCEL_CTRL, (int) 'd', ID_MNU_DELETE_ITEM);
...
wxAcceleratorTable accel(7, entries);
In the Frame class I did the same thing.
OnLinux/Gtk build these shortcuts work, Xp just rings the bell, when I I use enter a shortcut, defined in the TreeCtrl widget. The Shortcuts in the Frame work on both systems.
Is there a chance to display the shortcuts in the menubuttons AND use the acceleratortable?
Or do I have to move all of the eventhandling stuff into my Frame to run it on XP?[/code]