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:
Vadim Zeitlin
1999-01-19 13:18:51 +00:00
parent ce3ed50dbe
commit c75e66953f
2 changed files with 18 additions and 18 deletions

View File

@@ -686,7 +686,7 @@ static void wxDialogBoxEventHandler (Widget wid,
// if this returns TRUE, set continueToDispatch to False // if this returns TRUE, set continueToDispatch to False
// (don't continue processing). // (don't continue processing).
// Otherwise set it to True and call OnChar. // Otherwise set it to True and call OnChar.
wxKeyEvent keyEvent(wxEVENT_TYPE_CHAR); wxKeyEvent keyEvent(wxEVT_CHAR);
if (wxTranslateKeyEvent(keyEvent, dialog, wid, event)) if (wxTranslateKeyEvent(keyEvent, dialog, wid, event))
{ {
keyEvent.SetEventObject(dialog); keyEvent.SetEventObject(dialog);

View File

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