+ wxSplitterWindow* win = (wxSplitterWindow*)bbGetOutputWidget();
+ int w,h;
+ win->GetClientSize(&w,&h);
+ int pos = 100;
+ if (bbtk::Utilities::loosematch(bbGetInputOrientation(),
+ "0|H|HORIZONTAL")==true)
+ {
+ pos = (int)(w * bbGetInputProportion() * 0.01);
+ }
+ else
+ {
+ pos = (int)(h * bbGetInputProportion() * 0.01);
+ }
+
+ win->SetSashPosition(pos,true);
+ bbUserOnShowWidget("Widget1");
+ bbUserOnShowWidget("Widget2");