Toggle checkboxes in generic wxDataViewCtrl with single click.
Both GTK+ and OS X native controls use single click to toggle checkboxes, instead of double-click activation used by the generic version. So does wxCheckListBox on Windows, so make wxDVC behave the same way. See #11185. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -121,7 +121,8 @@ public:
|
|||||||
wxSize GetSize() const;
|
wxSize GetSize() const;
|
||||||
|
|
||||||
// Implementation only, don't use nor override
|
// Implementation only, don't use nor override
|
||||||
virtual bool WXOnActivate(wxRect cell,
|
virtual bool WXOnLeftClick(wxPoint cursor,
|
||||||
|
wxRect cell,
|
||||||
wxDataViewModel *model,
|
wxDataViewModel *model,
|
||||||
const wxDataViewItem& item,
|
const wxDataViewItem& item,
|
||||||
unsigned int col);
|
unsigned int col);
|
||||||
|
@@ -863,7 +863,8 @@ bool wxDataViewToggleRenderer::Render( wxRect cell, wxDC *dc, int WXUNUSED(state
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxDataViewToggleRenderer::WXOnActivate(wxRect WXUNUSED(cell),
|
bool wxDataViewToggleRenderer::WXOnLeftClick(wxPoint WXUNUSED(cursor),
|
||||||
|
wxRect WXUNUSED(cell),
|
||||||
wxDataViewModel *model,
|
wxDataViewModel *model,
|
||||||
const wxDataViewItem& item,
|
const wxDataViewItem& item,
|
||||||
unsigned int col)
|
unsigned int col)
|
||||||
|
Reference in New Issue
Block a user