Remove the mentions of the native OSX wxListCtrl control
This control was removed during the Carbon code removal in commit
5ba67c67e4, so the system option
does nothing now (and was only mentioned in the documentation
and the sample).
This commit is contained in:
committed by
Vadim Zeitlin
parent
48b1175f61
commit
f556a34086
@@ -147,10 +147,9 @@ enum
|
|||||||
To intercept events from a list control, use the event table macros described
|
To intercept events from a list control, use the event table macros described
|
||||||
in wxListEvent.
|
in wxListEvent.
|
||||||
|
|
||||||
<b>wxMac Note</b>: Starting with wxWidgets 2.8, wxListCtrl uses a native
|
@note The native wxOSX implementation for report mode that was added in wxWidgets
|
||||||
implementation for report mode, and uses a generic implementation for other
|
2.8 was removed in wxWidgets 3.1, meaning for wxWidgets 3.1+ wxOSX uses the generic
|
||||||
modes. You can use the generic implementation for report mode as well by setting
|
implementation for all modes.
|
||||||
the @c mac.listctrl.always_use_generic system option (see wxSystemOptions) to 1.
|
|
||||||
|
|
||||||
@subsection column_order Column Ordering
|
@subsection column_order Column Ordering
|
||||||
|
|
||||||
|
|||||||
@@ -105,9 +105,6 @@
|
|||||||
@flag{window-default-variant}
|
@flag{window-default-variant}
|
||||||
The default variant used by windows (cast to integer from the wxWindowVariant enum).
|
The default variant used by windows (cast to integer from the wxWindowVariant enum).
|
||||||
Also known as wxWINDOW_DEFAULT_VARIANT.
|
Also known as wxWINDOW_DEFAULT_VARIANT.
|
||||||
@flag{mac.listctrl.always_use_generic}
|
|
||||||
Tells wxListCtrl to use the generic control even when it is capable of
|
|
||||||
using the native control instead. Also known as wxMAC_ALWAYS_USE_GENERIC_LISTCTRL.
|
|
||||||
@flag{mac.textcontrol-use-spell-checker}
|
@flag{mac.textcontrol-use-spell-checker}
|
||||||
If 1 activates the spell checking in wxTextCtrl.
|
If 1 activates the spell checking in wxTextCtrl.
|
||||||
@flag{osx.openfiledialog.always-show-types}
|
@flag{osx.openfiledialog.always-show-types}
|
||||||
|
|||||||
@@ -150,9 +150,6 @@ wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
|
|||||||
EVT_MENU(LIST_TOGGLE_HEADER, MyFrame::OnToggleHeader)
|
EVT_MENU(LIST_TOGGLE_HEADER, MyFrame::OnToggleHeader)
|
||||||
EVT_MENU(LIST_TOGGLE_BELL, MyFrame::OnToggleBell)
|
EVT_MENU(LIST_TOGGLE_BELL, MyFrame::OnToggleBell)
|
||||||
EVT_MENU(LIST_CHECKVISIBILITY, MyFrame::OnCheckVisibility)
|
EVT_MENU(LIST_CHECKVISIBILITY, MyFrame::OnCheckVisibility)
|
||||||
#ifdef __WXOSX__
|
|
||||||
EVT_MENU(LIST_MAC_USE_GENERIC, MyFrame::OnToggleMacUseGeneric)
|
|
||||||
#endif // __WXOSX__
|
|
||||||
EVT_MENU(LIST_FIND, MyFrame::OnFind)
|
EVT_MENU(LIST_FIND, MyFrame::OnFind)
|
||||||
EVT_MENU(LIST_TOGGLE_CHECKBOX, MyFrame::OnToggleItemCheckBox)
|
EVT_MENU(LIST_TOGGLE_CHECKBOX, MyFrame::OnToggleItemCheckBox)
|
||||||
EVT_MENU(LIST_GET_CHECKBOX, MyFrame::OnGetItemCheckBox)
|
EVT_MENU(LIST_GET_CHECKBOX, MyFrame::OnGetItemCheckBox)
|
||||||
@@ -229,10 +226,6 @@ MyFrame::MyFrame(const wxString& title)
|
|||||||
menuView->Append(LIST_SMALL_VIRTUAL_VIEW, "Small virtual vie&w\tF8");
|
menuView->Append(LIST_SMALL_VIRTUAL_VIEW, "Small virtual vie&w\tF8");
|
||||||
menuView->AppendSeparator();
|
menuView->AppendSeparator();
|
||||||
menuView->Append(LIST_SET_ITEMS_COUNT, "Set &number of items");
|
menuView->Append(LIST_SET_ITEMS_COUNT, "Set &number of items");
|
||||||
#ifdef __WXOSX__
|
|
||||||
menuView->AppendSeparator();
|
|
||||||
menuView->AppendCheckItem(LIST_MAC_USE_GENERIC, "Mac: Use Generic Control");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
wxMenu *menuList = new wxMenu;
|
wxMenu *menuList = new wxMenu;
|
||||||
menuList->Append(LIST_GOTO, "&Go to item #3\tCtrl-3");
|
menuList->Append(LIST_GOTO, "&Go to item #3\tCtrl-3");
|
||||||
@@ -391,15 +384,6 @@ void MyFrame::OnCheckVisibility(wxCommandEvent& WXUNUSED(event))
|
|||||||
wxLogMessage( "Line 9 is not visible" );
|
wxLogMessage( "Line 9 is not visible" );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __WXOSX__
|
|
||||||
|
|
||||||
void MyFrame::OnToggleMacUseGeneric(wxCommandEvent& event)
|
|
||||||
{
|
|
||||||
wxSystemOptions::SetOption("mac.listctrl.always_use_generic", event.IsChecked());
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif // __WXOSX__
|
|
||||||
|
|
||||||
void MyFrame::OnGoTo(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnGoTo(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
if ( m_listCtrl->IsEmpty() )
|
if ( m_listCtrl->IsEmpty() )
|
||||||
|
|||||||
@@ -148,9 +148,6 @@ protected:
|
|||||||
void OnToggleLines(wxCommandEvent& event);
|
void OnToggleLines(wxCommandEvent& event);
|
||||||
void OnToggleHeader(wxCommandEvent& event);
|
void OnToggleHeader(wxCommandEvent& event);
|
||||||
void OnToggleBell(wxCommandEvent& event);
|
void OnToggleBell(wxCommandEvent& event);
|
||||||
#ifdef __WXOSX__
|
|
||||||
void OnToggleMacUseGeneric(wxCommandEvent& event);
|
|
||||||
#endif // __WXOSX__
|
|
||||||
void OnFind(wxCommandEvent& event);
|
void OnFind(wxCommandEvent& event);
|
||||||
void OnToggleItemCheckBox(wxCommandEvent& event);
|
void OnToggleItemCheckBox(wxCommandEvent& event);
|
||||||
void OnGetItemCheckBox(wxCommandEvent& event);
|
void OnGetItemCheckBox(wxCommandEvent& event);
|
||||||
@@ -245,9 +242,6 @@ enum
|
|||||||
LIST_FREEZE,
|
LIST_FREEZE,
|
||||||
LIST_THAW,
|
LIST_THAW,
|
||||||
LIST_TOGGLE_LINES,
|
LIST_TOGGLE_LINES,
|
||||||
#ifdef __WXOSX__
|
|
||||||
LIST_MAC_USE_GENERIC,
|
|
||||||
#endif
|
|
||||||
LIST_CHECKVISIBILITY,
|
LIST_CHECKVISIBILITY,
|
||||||
LIST_CTRL = 1000
|
LIST_CTRL = 1000
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user