added test for combo/focus bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -204,6 +204,12 @@ protected:
|
|||||||
void OnChar(wxKeyEvent& event);
|
void OnChar(wxKeyEvent& event);
|
||||||
void OnKeyDown(wxKeyEvent& event);
|
void OnKeyDown(wxKeyEvent& event);
|
||||||
void OnKeyUp(wxKeyEvent& event);
|
void OnKeyUp(wxKeyEvent& event);
|
||||||
|
void OnFocusGot(wxFocusEvent& event)
|
||||||
|
{
|
||||||
|
wxLogMessage(_T("MyComboBox::OnFocusGot"));
|
||||||
|
|
||||||
|
event.Skip();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
@@ -455,6 +461,8 @@ BEGIN_EVENT_TABLE(MyComboBox, wxComboBox)
|
|||||||
EVT_CHAR(MyComboBox::OnChar)
|
EVT_CHAR(MyComboBox::OnChar)
|
||||||
EVT_KEY_DOWN(MyComboBox::OnKeyDown)
|
EVT_KEY_DOWN(MyComboBox::OnKeyDown)
|
||||||
EVT_KEY_UP(MyComboBox::OnKeyUp)
|
EVT_KEY_UP(MyComboBox::OnKeyUp)
|
||||||
|
|
||||||
|
EVT_SET_FOCUS(MyComboBox::OnFocusGot)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(MyRadioBox, wxRadioBox)
|
BEGIN_EVENT_TABLE(MyRadioBox, wxRadioBox)
|
||||||
|
Reference in New Issue
Block a user