print " "
print "============================"
print "A Slider whose output is plugged into an OutputText"
+print "============================"
+print " "
+#==================================================================
message echo 2
# Create the Slider
new OutputText text
# Add the Layout
new LayoutLine main
-# Make it a Dialog
+# Make it a Dialog
set main.WinDialog true
-# Setting up the Layout :
+# Setting up the Layout
connect slider.Widget main.Widget1
connect text.Widget main.Widget2
-# The output of the slider is plugged into the input of the text
-# To do this, we must have an int to string adaptor, hence load std
+#The output of the slider is plugged into the input of the text
+#To do this, we must have an int to string adaptor, hence load std
load std
connect slider.Out text.In
print " "
print "============================"
print "Splitting a window into two adjustable parts"
+print "============================"
+print " "
#==================================================================
message echo 2
new LayoutSplit main
-
+new Slider slider1
+new Slider slider2
+connect slider1.Widget main.Widget1
+connect slider2.Widget main.Widget2
+set main.Proportion 75
+set main.Orientation Horizontal
set main.WinDialog true
exec main