]> Creatis software - bbtk.git/blobdiff - packages/wx/bbs/appli/exampleSlider.bbs
Show differences (?) between init with Set and Connect
[bbtk.git] / 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