1. wxGCBoolRenderer looks better under MSW
2. wxGCBoolEditor too 3. only alnum keys start editing in-place 4. some memory leaks in wxGrid plugged git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3034,17 +3034,25 @@ bool wxWindow::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
||||
}
|
||||
|
||||
if ( win )
|
||||
return win->MSWCommand(cmd, id);
|
||||
else
|
||||
{
|
||||
// If no child window, it may be an accelerator, e.g. for
|
||||
// a popup menu command.
|
||||
return win->MSWCommand(cmd, id);
|
||||
}
|
||||
|
||||
// the messages sent from the in-place edit control used by the treectrl
|
||||
// for label editing have id == 0, but they should _not_ be treated as menu
|
||||
// messages (they are EN_XXX ones, in fact) so don't translate anything
|
||||
// coming from a control to wxEVT_COMMAND_MENU_SELECTED
|
||||
if ( !control )
|
||||
{
|
||||
// If no child window, it may be an accelerator, e.g. for a popup menu
|
||||
// command
|
||||
|
||||
wxCommandEvent event(wxEVT_COMMAND_MENU_SELECTED);
|
||||
event.SetEventObject(this);
|
||||
event.SetId(id);
|
||||
event.SetInt(id);
|
||||
return ProcessEvent(event);
|
||||
|
||||
return GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user