- Connect(GetId(), wxEVT_SIZE, (wxObjectEventFunction)&SwitchView::OnSize);
- Connect(m_choice->GetId(), wxEVT_COMMAND_CHOICE_SELECTED, (wxObjectEventFunction)&SwitchView::OnChoice);
- Connect(m_view->GetId(), wxEVT_PAINT, (wxObjectEventFunction)&SwitchView::OnPaint);
-
- Connect(-1, wxEVT_SET_FOCUS, (wxObjectEventFunction)&SwitchView::OnFocus);
- Connect(-1, wxEVT_SCROLL_TOP, (wxObjectEventFunction)&SwitchView::OnScroll);
- Connect(-1, wxEVT_SCROLL_BOTTOM, (wxObjectEventFunction)&SwitchView::OnScroll);
- Connect(-1, wxEVT_SCROLL_LINEUP, (wxObjectEventFunction)&SwitchView::OnScroll);
- Connect(-1, wxEVT_SCROLL_LINEDOWN, (wxObjectEventFunction)&SwitchView::OnScroll);
- Connect(-1, wxEVT_SCROLL_PAGEUP, (wxObjectEventFunction)&SwitchView::OnScroll);
- Connect(-1, wxEVT_SCROLL_PAGEDOWN, (wxObjectEventFunction)&SwitchView::OnScroll);
- Connect(-1, wxEVT_SCROLL_THUMBTRACK, (wxObjectEventFunction)&SwitchView::OnScroll);
- Connect(-1, wxEVT_SCROLL_THUMBRELEASE, (wxObjectEventFunction)&SwitchView::OnScroll);
- Connect(-1, wxEVT_ERASE_BACKGROUND, (wxObjectEventFunction)&SwitchView::OnErase);
-
- Connect(-1, wxEVT_DYNAMIC_SASH_SPLIT, (wxObjectEventFunction)&SwitchView::OnSplit);
- Connect(-1, wxEVT_DYNAMIC_SASH_UNIFY, (wxObjectEventFunction)&SwitchView::OnUnify);
+ Connect(GetId(), wxEVT_SIZE, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxSizeEventFunction)&SwitchView::OnSize);
+ Connect(m_choice->GetId(), wxEVT_COMMAND_CHOICE_SELECTED, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxCommandEventFunction)&SwitchView::OnChoice);
+ Connect(m_view->GetId(), wxEVT_PAINT, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxPaintEventFunction)&SwitchView::OnPaint);
+
+ Connect(-1, wxEVT_SET_FOCUS, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxFocusEventFunction)&SwitchView::OnFocus);
+ Connect(-1, wxEVT_SCROLL_TOP, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxScrollEventFunction)&SwitchView::OnScroll);
+ Connect(-1, wxEVT_SCROLL_BOTTOM, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxScrollEventFunction)&SwitchView::OnScroll);
+ Connect(-1, wxEVT_SCROLL_LINEUP, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxScrollEventFunction)&SwitchView::OnScroll);
+ Connect(-1, wxEVT_SCROLL_LINEDOWN, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxScrollEventFunction)&SwitchView::OnScroll);
+ Connect(-1, wxEVT_SCROLL_PAGEUP, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxScrollEventFunction)&SwitchView::OnScroll);
+ Connect(-1, wxEVT_SCROLL_PAGEDOWN, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxScrollEventFunction)&SwitchView::OnScroll);
+ Connect(-1, wxEVT_SCROLL_THUMBTRACK, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxScrollEventFunction)&SwitchView::OnScroll);
+ Connect(-1, wxEVT_SCROLL_THUMBRELEASE, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxScrollEventFunction)&SwitchView::OnScroll);
+ Connect(-1, wxEVT_ERASE_BACKGROUND, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxEraseEventFunction)&SwitchView::OnErase);
+
+ Connect(-1, wxEVT_DYNAMIC_SASH_SPLIT, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxDynamicSashSplitEventFunction)&SwitchView::OnSplit);
+ Connect(-1, wxEVT_DYNAMIC_SASH_UNIFY, (wxObjectEventFunction)
+ (wxEventFunction)
+ (wxDynamicSashUnifyEventFunction)&SwitchView::OnUnify);