wxCHECK_RET(nb, "failed to find objref_notebook");
// Connect different event handlers.
- nb->Connect(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
+ nb->Connect(wxEVT_NOTEBOOK_PAGE_CHANGED,
wxNotebookEventHandler(ObjrefDialog::OnNotebookPageChanged),
NULL, this);
// Connect the id ranges, using the [start] and [end] 'typedefs'
page = nb->GetPage(calc_page);
page->Connect(XRCID("digits[start]"), XRCID("digits[end]"),
- wxEVT_COMMAND_BUTTON_CLICKED,
+ wxEVT_BUTTON,
wxCommandEventHandler(ObjrefDialog::OnNumeralClick),
NULL, this);
page->Connect(XRCID("operators[start]"), XRCID("operators[end]"),
- wxEVT_COMMAND_BUTTON_CLICKED,
+ wxEVT_BUTTON,
wxCommandEventHandler(ObjrefDialog::OnOperatorClick),
NULL, this);
ClearCalculator();
break;
}
-
- default: return;
}
}
{
wxLogMessage("You clicked operators[%i], XRCID %d, 'Clear'",
ID, event.GetId());
- return ClearCalculator();
+ ClearCalculator();
+ return;
}
switch(ID)