Add wxUSE_NATIVE_DATAVIEWCTRL build option
It defaults to 1, but can be set to 0 to force using the generic version of the control even under GTK or Mac, where the native version is used by default. This can, unfortunately, be useful to work around various but multiple native control limitations.
This commit is contained in:
@@ -33,8 +33,13 @@ class WXDLLIMPEXP_FWD_CORE wxImageList;
|
||||
class wxItemAttr;
|
||||
class WXDLLIMPEXP_FWD_CORE wxHeaderCtrl;
|
||||
|
||||
#if !(defined(__WXGTK20__) || defined(__WXOSX__) ) || defined(__WXUNIVERSAL__)
|
||||
// #if !(defined(__WXOSX__)) || defined(__WXUNIVERSAL__)
|
||||
#if wxUSE_NATIVE_DATAVIEWCTRL && !defined(__WXUNIVERSAL__)
|
||||
#if defined(__WXGTK20__) || defined(__WXOSX__)
|
||||
#define wxHAS_NATIVE_DATAVIEWCTRL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef wxHAS_NATIVE_DATAVIEWCTRL
|
||||
#define wxHAS_GENERIC_DATAVIEWCTRL
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user