- // This callback is necessary to get actual processing of the view
- // when window is shown
- void LayoutTab::OnShowWidget()
- {
- bbGetOutputWidget()->Show();
- bbUserOnShowWidget("Widget1");
- bbUserOnShowWidget("Widget2");
- bbUserOnShowWidget("Widget3");
- bbUserOnShowWidget("Widget4");
- bbUserOnShowWidget("Widget5");
- bbUserOnShowWidget("Widget6");
- bbUserOnShowWidget("Widget7");
- bbUserOnShowWidget("Widget8");
- bbUserOnShowWidget("Widget9");
+ void LayoutTab::Process()
+ {
+ PutWinTitle();
+ SetTitleTabs();
+ }
+
+ 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 );