]> Creatis software - bbtk.git/commitdiff
Show differences (?) between init with Set and Connect
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 16 Apr 2009 14:13:32 +0000 (14:13 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 16 Apr 2009 14:13:32 +0000 (14:13 +0000)
packages/wx/bbs/appli/exampleSlider.bbs

index d524ec137b5a69917115526c09b0b3443836819a..80949ce910b5053daec8bea9396db4df79b871f4 100644 (file)
@@ -7,18 +7,53 @@ load std
 load wx
 
 # Create the Objects
+
+new LayoutLine layout
+
+// Initialisations with Set
+
 new Slider     slider
  set slider.ReactiveOnTrack 1
+ set slider.Min 10
+ set slider.Max 100
+ set slider.In 25
+ set slider.Label 1
+ set slider.Orientation H  
+ set slider.Title "initialisations with Set"      
 new OutputText text
-new LayoutLine layout
+
+new Add a
+   set a.In1 5
+
+// Initialisations with Connect
+           
+new Slider     slider2
+ set slider2.ReactiveOnTrack 1
+ set a.In2 5
+ connect a.Out slider2.Min
+ set a.In2 95
+ connect a.Out slider2.Max    
+ set a.In2 20
+ connect a.Out slider2.In
+ set slider2.Label 1
+ set slider2.Orientation H  
+ set slider2.Title "initialisations with Connect"      
+new OutputText text2
+
 
 # Graphical pipeline
 connect slider.Widget    layout.Widget1
 connect text.Widget      layout.Widget2
 
+connect slider2.Widget    layout.Widget3
+connect text2.Widget      layout.Widget4
+
 # Execution pipeline
 connect slider.BoxChange text.BoxExecute
 connect slider.Out       text.In
 
+connect slider2.BoxChange text2.BoxExecute
+connect slider2.Out       text2.In
+
 # Go!
 exec layout