I->GetInterpreter()->GetExecuter()->GetFactory()->HelpBlackBox("workspace",package,false);
}
+ /*
+ std::cout << "soe="<<show_on_error <<std::endl;
+ std::cout << "con="<<console<<std::endl;
+ std::cout << "iws="<<bbtk::Wx::IsSomeWindowShown()<<std::endl;
+ */
if (!(show_on_error || console || bbtk::Wx::IsSomeWindowShown() ))
{
I->Close();
+ // std::cout << "I->Close"<<std::endl;
+ }
+ else
+ {
+ // std::cout << "!I->Close"<<std::endl;
}
return true;
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/05/06 13:45:12 $
- Version: $Revision: 1.17 $
+ Date: $Date: 2008/05/13 09:52:58 $
+ Version: $Revision: 1.18 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
<<bbGetBlackBox()->bbGetFullName()<<"]"<<std::endl);
WxBlackBoxWindow::bbShow();
SetReturnCode( wxDialog::ShowModal() );
+ bbHide();
}
//=========================================================================
--- /dev/null
+description "Example of LayoutSplit"
+category "example"
+author "laurent.guigues@creatis.insa-lyon.fr"
+
+load std
+load wx
+
+new Slider s1
+new Slider s2
+
+new LayoutSplit s
+connect s1.Widget s.Widget1
+connect s2.Widget s.Widget2
+
+exec s
category "example;widget"
load wx
+load std
new ColourSelectorButton b
-exec b
+set b.WinDialog true
+
+print colour=$b.Out$
category "example;widget"
load wx
+load std
new Slider slider
-exec slider
+set slider.WinDialog true
+
+print position=$slider.Out$