compilation fixes for "nocompatibility" mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -686,7 +686,7 @@ static void wxDialogBoxEventHandler (Widget wid,
|
||||
// if this returns TRUE, set continueToDispatch to False
|
||||
// (don't continue processing).
|
||||
// Otherwise set it to True and call OnChar.
|
||||
wxKeyEvent keyEvent(wxEVENT_TYPE_CHAR);
|
||||
wxKeyEvent keyEvent(wxEVT_CHAR);
|
||||
if (wxTranslateKeyEvent(keyEvent, dialog, wid, event))
|
||||
{
|
||||
keyEvent.SetEventObject(dialog);
|
||||
|
@@ -844,7 +844,7 @@ void wxFrame::Command(int id)
|
||||
|
||||
void wxFrame::ProcessCommand(int id)
|
||||
{
|
||||
wxCommandEvent commandEvent(wxEVENT_TYPE_MENU_COMMAND, id);
|
||||
wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, id);
|
||||
commandEvent.SetInt( id );
|
||||
commandEvent.SetEventObject( this );
|
||||
|
||||
|
Reference in New Issue
Block a user