]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxNB_RIGHT,LEFT,BOTTOM flags for tab placement
authorJ. Russell Smyth <drfish@cox.net>
Wed, 29 Sep 1999 17:41:05 +0000 (17:41 +0000)
committerJ. Russell Smyth <drfish@cox.net>
Wed, 29 Sep 1999 17:41:05 +0000 (17:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/notebook.cpp
src/gtk1/notebook.cpp

index aa910af6edd037c4f213e7e5be0d71cb4bead1e0..8d29d5e7e65f75557b9022fb21d703d8d29be77a 100644 (file)
@@ -204,6 +204,13 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id,
 
     m_parent->DoAddChild( this );
 
 
     m_parent->DoAddChild( this );
 
+       if(m_windowStyle & wxNB_RIGHT)
+               gtk_notebook_set_tab_pos( GTK_NOTEBOOK(m_widget), GTK_POS_RIGHT );
+       if(m_windowStyle & wxNB_LEFT)
+               gtk_notebook_set_tab_pos( GTK_NOTEBOOK(m_widget), GTK_POS_LEFT );
+       if(m_windowStyle & wxNB_BOTTOM)
+               gtk_notebook_set_tab_pos( GTK_NOTEBOOK(m_widget), GTK_POS_BOTTOM );
+
     PostCreation();
 
     Show( TRUE );
     PostCreation();
 
     Show( TRUE );
@@ -605,4 +612,4 @@ bool wxNotebook::IsOwnGtkWindow( GdkWindow *window )
 
 IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxNotifyEvent)
 
 
 IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxNotifyEvent)
 
-#endif
\ No newline at end of file
+#endif
index aa910af6edd037c4f213e7e5be0d71cb4bead1e0..8d29d5e7e65f75557b9022fb21d703d8d29be77a 100644 (file)
@@ -204,6 +204,13 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id,
 
     m_parent->DoAddChild( this );
 
 
     m_parent->DoAddChild( this );
 
+       if(m_windowStyle & wxNB_RIGHT)
+               gtk_notebook_set_tab_pos( GTK_NOTEBOOK(m_widget), GTK_POS_RIGHT );
+       if(m_windowStyle & wxNB_LEFT)
+               gtk_notebook_set_tab_pos( GTK_NOTEBOOK(m_widget), GTK_POS_LEFT );
+       if(m_windowStyle & wxNB_BOTTOM)
+               gtk_notebook_set_tab_pos( GTK_NOTEBOOK(m_widget), GTK_POS_BOTTOM );
+
     PostCreation();
 
     Show( TRUE );
     PostCreation();
 
     Show( TRUE );
@@ -605,4 +612,4 @@ bool wxNotebook::IsOwnGtkWindow( GdkWindow *window )
 
 IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxNotifyEvent)
 
 
 IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxNotifyEvent)
 
-#endif
\ No newline at end of file
+#endif