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:
@@ -907,6 +907,14 @@
|
||||
#define wxUSE_TREECTRL 1 // wxTreeCtrl
|
||||
#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
|
||||
|
||||
// Use generic version of wxDataViewCtrl even if a native one is available?
|
||||
//
|
||||
// Default is 0.
|
||||
//
|
||||
// Recommended setting: 0, but can be set to 1 if your program is affected by
|
||||
// the native control limitations.
|
||||
#define wxUSE_NATIVE_DATAVIEWCTRL 1
|
||||
|
||||
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
|
||||
// below either wxStatusBar95 or a generic wxStatusBar will be used.
|
||||
//
|
||||
|
@@ -649,6 +649,14 @@
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_DATAVIEWCTRL) */
|
||||
|
||||
#ifndef wxUSE_NATIVE_DATAVIEWCTRL
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_NATIVE_DATAVIEWCTRL must be defined, please read comment near the top of this file."
|
||||
# else
|
||||
# define wxUSE_NATIVE_DATAVIEWCTRL 1
|
||||
# endif
|
||||
#endif /* !defined(wxUSE_NATIVE_DATAVIEWCTRL) */
|
||||
|
||||
#ifndef wxUSE_DATEPICKCTRL
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_DATEPICKCTRL must be defined, please read comment near the top of this file."
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -908,6 +908,14 @@
|
||||
#define wxUSE_TREECTRL 1 // wxTreeCtrl
|
||||
#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
|
||||
|
||||
// Use generic version of wxDataViewCtrl even if a native one is available?
|
||||
//
|
||||
// Default is 0.
|
||||
//
|
||||
// Recommended setting: 0, but can be set to 1 if your program is affected by
|
||||
// the native control limitations.
|
||||
#define wxUSE_NATIVE_DATAVIEWCTRL 1
|
||||
|
||||
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
|
||||
// below either wxStatusBar95 or a generic wxStatusBar will be used.
|
||||
//
|
||||
|
@@ -908,6 +908,14 @@
|
||||
#define wxUSE_TREECTRL 1 // wxTreeCtrl
|
||||
#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
|
||||
|
||||
// Use generic version of wxDataViewCtrl even if a native one is available?
|
||||
//
|
||||
// Default is 0.
|
||||
//
|
||||
// Recommended setting: 0, but can be set to 1 if your program is affected by
|
||||
// the native control limitations.
|
||||
#define wxUSE_NATIVE_DATAVIEWCTRL 1
|
||||
|
||||
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
|
||||
// below either wxStatusBar95 or a generic wxStatusBar will be used.
|
||||
//
|
||||
|
@@ -908,6 +908,14 @@
|
||||
#define wxUSE_TREECTRL 1 // wxTreeCtrl
|
||||
#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
|
||||
|
||||
// Use generic version of wxDataViewCtrl even if a native one is available?
|
||||
//
|
||||
// Default is 0.
|
||||
//
|
||||
// Recommended setting: 0, but can be set to 1 if your program is affected by
|
||||
// the native control limitations.
|
||||
#define wxUSE_NATIVE_DATAVIEWCTRL 1
|
||||
|
||||
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
|
||||
// below either wxStatusBar95 or a generic wxStatusBar will be used.
|
||||
//
|
||||
|
@@ -914,6 +914,14 @@
|
||||
#define wxUSE_TREECTRL 1 // wxTreeCtrl
|
||||
#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
|
||||
|
||||
// Use generic version of wxDataViewCtrl even if a native one is available?
|
||||
//
|
||||
// Default is 0.
|
||||
//
|
||||
// Recommended setting: 0, but can be set to 1 if your program is affected by
|
||||
// the native control limitations.
|
||||
#define wxUSE_NATIVE_DATAVIEWCTRL 1
|
||||
|
||||
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
|
||||
// below either wxStatusBar95 or a generic wxStatusBar will be used.
|
||||
//
|
||||
|
@@ -904,6 +904,14 @@
|
||||
#define wxUSE_TREECTRL 1 // wxTreeCtrl
|
||||
#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
|
||||
|
||||
// Use generic version of wxDataViewCtrl even if a native one is available?
|
||||
//
|
||||
// Default is 0.
|
||||
//
|
||||
// Recommended setting: 0, but can be set to 1 if your program is affected by
|
||||
// the native control limitations.
|
||||
#define wxUSE_NATIVE_DATAVIEWCTRL 1
|
||||
|
||||
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
|
||||
// below either wxStatusBar95 or a generic wxStatusBar will be used.
|
||||
//
|
||||
|
@@ -907,6 +907,14 @@
|
||||
#define wxUSE_TREECTRL 1 // wxTreeCtrl
|
||||
#define wxUSE_TREELISTCTRL 1 // wxTreeListCtrl
|
||||
|
||||
// Use generic version of wxDataViewCtrl even if a native one is available?
|
||||
//
|
||||
// Default is 0.
|
||||
//
|
||||
// Recommended setting: 0, but can be set to 1 if your program is affected by
|
||||
// the native control limitations.
|
||||
#define wxUSE_NATIVE_DATAVIEWCTRL 1
|
||||
|
||||
// Use a status bar class? Depending on the value of wxUSE_NATIVE_STATUSBAR
|
||||
// below either wxStatusBar95 or a generic wxStatusBar will be used.
|
||||
//
|
||||
|
Reference in New Issue
Block a user