EVT_MENU(LIST_FREEZE, MyFrame::OnFreeze)
EVT_MENU(LIST_THAW, MyFrame::OnThaw)
EVT_MENU(LIST_TOGGLE_LINES, MyFrame::OnToggleLines)
+#ifdef __WXOSX__
EVT_MENU(LIST_MAC_USE_GENERIC, MyFrame::OnToggleMacUseGeneric)
+#endif // __WXOSX__
EVT_UPDATE_UI(LIST_SHOW_COL_INFO, MyFrame::OnUpdateShowColInfo)
EVT_UPDATE_UI(LIST_TOGGLE_MULTI_SEL, MyFrame::OnUpdateToggleMultiSel)
m_listCtrl->SetSingleStyle(wxLC_HRULES | wxLC_VRULES, event.IsChecked());
}
+#ifdef __WXOSX__
+
void MyFrame::OnToggleMacUseGeneric(wxCommandEvent& event)
{
wxSystemOptions::SetOption(wxT("mac.listctrl.always_use_generic"), event.IsChecked());
}
+#endif // __WXOSX__
+
void MyFrame::OnGoTo(wxCommandEvent& WXUNUSED(event))
{
long index = 3;
void OnFreeze(wxCommandEvent& event);
void OnThaw(wxCommandEvent& event);
void OnToggleLines(wxCommandEvent& event);
+#ifdef __WXOSX__
void OnToggleMacUseGeneric(wxCommandEvent& event);
+#endif // __WXOSX__
void OnUpdateShowColInfo(wxUpdateUIEvent& event);
void OnUpdateToggleMultiSel(wxUpdateUIEvent& event);
LIST_FREEZE,
LIST_THAW,
LIST_TOGGLE_LINES,
+#ifdef __WXOSX__
LIST_MAC_USE_GENERIC,
+#endif
LIST_CTRL = 1000
};