From: jean-pierre roux Date: Thu, 16 Apr 2009 14:13:32 +0000 (+0000) Subject: Show differences (?) between init with Set and Connect X-Git-Tag: EED.02Oct2009~59 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ff828bd57e0d786a1d684aa67ee62e04f60d042b;p=bbtk.git Show differences (?) between init with Set and Connect --- diff --git a/packages/wx/bbs/appli/exampleSlider.bbs b/packages/wx/bbs/appli/exampleSlider.bbs index d524ec1..80949ce 100644 --- a/packages/wx/bbs/appli/exampleSlider.bbs +++ b/packages/wx/bbs/appli/exampleSlider.bbs @@ -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