X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fkw%2Fsrc%2FbbkwLayoutSplit.cxx;h=ecb942b15818d71fcd469e567a8c1b3bfb321b95;hb=d818d3773f70d1d68bf712ebae8edd8739bc3e17;hp=10a2097d1e41e0a058598805eb16c679e5ac69b4;hpb=8cbad3dc345346d0473d93cdc06dc9eb5cbdbf23;p=bbtk.git diff --git a/packages/kw/src/bbkwLayoutSplit.cxx b/packages/kw/src/bbkwLayoutSplit.cxx index 10a2097..ecb942b 100644 --- a/packages/kw/src/bbkwLayoutSplit.cxx +++ b/packages/kw/src/bbkwLayoutSplit.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbkwLayoutSplit.cxx,v $ Language: C++ - Date: $Date: 2008/12/02 13:37:56 $ - Version: $Revision: 1.3 $ + Date: $Date: 2008/12/18 11:54:57 $ + Version: $Revision: 1.4 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -100,11 +100,16 @@ namespace bbkw 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()); splitframe->SetReliefToGroove(); splitframe->SetBorderWidth(2); @@ -114,7 +119,17 @@ namespace bbkw vtkKWWidget* w2 = bbCreateWidgetOfInput("Widget2",splitframe->GetFrame2()); - + splitframe->GetApplication()->Script + ("pack %s -expand yes -fill both", + w1->GetWidgetName()) ; + splitframe->GetApplication()->Script + ("pack %s -expand yes -fill both", + w2->GetWidgetName()) ; + + /* + splitframe->GetApplication()->Script("pack %s -expand yes -fill x -fill y", w2->GetWidgetName()); + */ + /* splitframe->GetApplication()->Script("place %s -x 0 -y 0 -width %d -height %d", w1->GetWidgetName(), width, @@ -125,7 +140,7 @@ namespace bbkw width, height); - + */ }