load wx
new Sizer main
- set main.Orientation H
+ set main.Orientation V
new Sizer Sizer2
new Slider s1
connect s1.Widget main.Widget1
connect Sizer2.Widget main.Widget2
-set Sizer2.Orientation V
+set Sizer2.Orientation H
connect s2.Widget Sizer2.Widget1
connect s3.Widget Sizer2.Widget2
load wx
new Split main
- set main.Orientation H
+ set main.Orientation V
new Split split2
new Slider s1
connect s1.Widget main.Widget1
connect split2.Widget main.Widget2
-set split2.Orientation V
+set split2.Orientation H
connect s2.Widget split2.Widget1
connect s3.Widget split2.Widget2
Program: bbtk
Module: $RCSfile: bbwxSplit.cxx,v $
Language: C++
- Date: $Date: 2008/02/14 20:55:52 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/02/15 10:23:59 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void Split::bbUserConstructor()
{
bbSetInputWinTitle("Split");
- bbSetInputOrientation("HORIZONTAL");
+ bbSetInputOrientation("VERTICAL");
bbSetInputProportion(50);
bbSetInputWidget1(NULL);
bbSetInputWidget2(NULL);
if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true) { orientation=0; }
if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true) { orientation=1; }
- if (orientation==0) { w->SplitHorizontally( w1, w2, 100); }
+ if (orientation==1) { w->SplitHorizontally( w1, w2, 100); }
else { w->SplitVertically( w1, w2, 100); }
bbSetOutputWidget( w );