Some wxCollapsiblePane tweaks:
- Use wxCP_DEFAULT_STYLE - Share a single wxCollapsiblePaneNameStr for the native and generic versions - Use a wxPanel for the pane so tab traversal works in the pane git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,7 +19,7 @@ class WXDLLEXPORT wxButton;
|
||||
class WXDLLEXPORT wxStaticLine;
|
||||
|
||||
// class name
|
||||
extern WXDLLIMPEXP_DATA_CORE(const wxChar) wxGenericCollapsiblePaneNameStr[];
|
||||
extern WXDLLIMPEXP_DATA_CORE(const wxChar) wxCollapsiblePaneNameStr[];
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -36,9 +36,9 @@ public:
|
||||
const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
|
||||
long style = wxCP_DEFAULT_STYLE,
|
||||
const wxValidator& val = wxDefaultValidator,
|
||||
const wxString& name = wxGenericCollapsiblePaneNameStr)
|
||||
const wxString& name = wxCollapsiblePaneNameStr)
|
||||
{
|
||||
Init();
|
||||
|
||||
@@ -60,9 +60,9 @@ public:
|
||||
const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
|
||||
long style = wxCP_DEFAULT_STYLE,
|
||||
const wxValidator& val = wxDefaultValidator,
|
||||
const wxString& name = wxGenericCollapsiblePaneNameStr);
|
||||
const wxString& name = wxCollapsiblePaneNameStr);
|
||||
|
||||
|
||||
// public wxCollapsiblePane API
|
||||
|
Reference in New Issue
Block a user