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:
@@ -38,7 +38,7 @@
|
||||
// implementation
|
||||
// ============================================================================
|
||||
|
||||
const wxChar wxGenericCollapsiblePaneNameStr[] = wxT("genericCollapsiblePane");
|
||||
const wxChar wxCollapsiblePaneNameStr[] = wxT("collapsiblePane");
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxGenericCollapsiblePane
|
||||
@@ -90,8 +90,8 @@ bool wxGenericCollapsiblePane::Create(wxWindow *parent,
|
||||
#endif
|
||||
|
||||
// do not set sz as our sizers since we handle the pane window without using sizers
|
||||
m_pPane = new wxWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxNO_BORDER);
|
||||
m_pPane = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxTAB_TRAVERSAL|wxNO_BORDER);
|
||||
|
||||
// start as collapsed:
|
||||
m_pPane->Hide();
|
||||
|
Reference in New Issue
Block a user