+ splitframe->SetExpandableFrameToBothFrames();
+
+
+ int width = parent->GetWidth();
+ int height = parent->GetHeight();
+ int orientation = 0;
+ if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true)
+ {
+ orientation = 0;
+ }
+ else if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)
+ {
+ orientation = 1;
+ }
+ else
+ {
+ bbtkWarning("Unrecognized value '"<<bbGetInputOrientation()<<"' for input 'Orientation' of LayoutSplit "<<bbGetName()<<std::endl);
+ }
+
+ if (orientation==0)
+ {
+ splitframe->SetOrientationToHorizontal ();
+ width = width / 2;
+ }
+ else
+ {
+ splitframe->SetOrientationToVertical ();
+ height = height / 2 ;
+ }
+
+ width = width - 5;
+ height = height - 5 ;
+
+ /*
+ bbGetOutputWidget()->GetApplication()->Script("place %s -x 0 -y 0 -width %d -height %d",
+ bbGetOutputWidget()->GetWidgetName(),
+ parent->GetWidth(),
+ parent->GetHeight() );
+ */
+ bbGetOutputWidget()->GetApplication()->Script
+ ("pack %s -expand yes -fill both",
+ bbGetOutputWidget()->GetWidgetName());