+
+ void LayoutTab::CreateWidget(wxWindow* parent)
+ {
+ long style = wxNB_TOP;
+ if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|T|TOP")==true)
+ { style=wxNB_TOP; }
+ if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|R|RIGHT")==true)
+ { style=wxNB_RIGHT; }
+ if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"2|B|BOTTOM")==true)
+ { style=wxNB_BOTTOM; }
+ if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"3|L|LEFT")==true)
+ { style=wxNB_LEFT; }
+
+//EED2020-04-06
+// wxNotebook *w = new wxNotebook(parent, //bbGetWxParent(),
+// -1,
+// wxDefaultPosition,
+// wxDefaultSize,
+// style );
+//
+ TabWidget *tabwidget = new TabWidget (this, parent, style );
+ tabwidget->SetName( bbtk::std2wx( bbGetInputWinTitle() ) );
+ wxNotebook *w = tabwidget->GetmwxNotebook();
+
+//EED2020-04-06
+// w->SetName( bbtk::std2wx( bbGetInputWinTitle() ) );
+ TryInsertWindow(w,"Widget1");
+ TryInsertWindow(w,"Widget2");
+ TryInsertWindow(w,"Widget3");
+ TryInsertWindow(w,"Widget4");
+ TryInsertWindow(w,"Widget5");
+ TryInsertWindow(w,"Widget6");
+ TryInsertWindow(w,"Widget7");
+ TryInsertWindow(w,"Widget8");
+ TryInsertWindow(w,"Widget9");
+
+//EED2020-04-06
+// bbSetOutputWidget( w );
+ bbSetOutputWidget( tabwidget );
+ }
+
+
+ // This callback is necessary to get actual processing of the view
+// when window is shown
+void LayoutTab::OnShowWidget()
+{
+//EED2020-04-06
+// wxNotebook* w = (wxNotebook*)bbGetOutputWidget();
+ wxNotebook* w = ((TabWidget*)bbGetOutputWidget())->GetmwxNotebook();
+ if (w)
+ {
+ if (w->GetPageCount()>0)
+ {
+ w->SetSelection(0);
+ for (unsigned int i=0; i<w->GetPageCount(); ++i)
+ {
+ w->AdvanceSelection();
+ } // for
+ } // if PageCount
+ } // if w
+}