-description "Simple test of wx::Slider widget"
-author "laurent.guigues@creatis.insa-lyon.fr"
-category "example;widget"
+description "Simple use of wx::Slider widget"
+author "jpr@creatis.insa-lyon.fr"
+category "example"
+# Load the packages
+load std
load wx
-new Slider slider
-exec slider
+
+# Create the Objects
+new Slider slider
+ set slider.ReactiveOnTrack 1
+new OutputText text
+new LayoutLine layout
+
+# Graphical pipeline
+connect slider.Widget layout.Widget1
+connect text.Widget layout.Widget2
+
+# Execution pipeline
+connect slider.BoxChange text.BoxExecute
+connect slider.Out text.In
+
+# Go!
+exec layout