]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fixes for "nocompatibility" mode
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 19 Jan 1999 13:18:51 +0000 (13:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 19 Jan 1999 13:18:51 +0000 (13:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/dialog.cpp
src/motif/frame.cpp

index 95be8446122b760a373d94be2cdaad721161ee04..3aad3f823b5ed2e7152f501783efc13df5135881 100644 (file)
@@ -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);
index db685c5cf10f101dc67ff189563dd9c9137bdf6a..6f126aae72243ef7186be3689e8fb935778490cc 100644 (file)
@@ -844,23 +844,23 @@ void wxFrame::Command(int id)
 
 void wxFrame::ProcessCommand(int id)
 {
-    wxCommandEvent commandEvent(wxEVENT_TYPE_MENU_COMMAND, id);
-    commandEvent.SetInt( id );
-    commandEvent.SetEventObject( this );
-    
-    wxMenuBar *bar = GetMenuBar() ;
-    if (!bar)
-        return;
-    
-        /* TODO: check the menu item if required
-        wxMenuItem *item = bar->FindItemForId(id) ;
-        if (item && item->IsCheckable())
-        {
-        bar->Check(id,!bar->Checked(id)) ;
-        }
-    */
-    
-    GetEventHandler()->ProcessEvent(commandEvent);
+  wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, id);
+  commandEvent.SetInt( id );
+  commandEvent.SetEventObject( this );
+
+  wxMenuBar *bar = GetMenuBar() ;
+  if (!bar)
+    return;
+
+/* TODO: check the menu item if required
+  wxMenuItem *item = bar->FindItemForId(id) ;
+  if (item && item->IsCheckable())
+  {
+    bar->Check(id,!bar->Checked(id)) ;
+  }
+*/
+
+  GetEventHandler()->ProcessEvent(commandEvent);
 }
 
 // Checks if there is a toolbar, and returns the first free client position