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:
Robin Dunn
2006-11-11 07:32:08 +00:00
parent d2af7584c0
commit 037c7b4c7b
5 changed files with 13 additions and 17 deletions

View File

@@ -28,8 +28,6 @@
#include <gtk/gtkexpander.h>
const wxChar wxCollapsiblePaneNameStr[] = wxT("CollapsiblePane");
// ============================================================================
// implementation
// ============================================================================
@@ -224,8 +222,8 @@ bool wxCollapsiblePane::Create(wxWindow *parent,
m_insertCallback = gtk_collapsiblepane_insert_callback;
// this the real "pane"
m_pPane = new wxWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
wxNO_BORDER);
m_pPane = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL|wxNO_BORDER);
gtk_widget_show( GTK_WIDGET(m_widget) );
m_parent->DoAddChild( this );