Hi Manuel,

When you get this working, even as just a demo, it might be nice to include
in the Factor repository.

Best,
John.


On Sat, Dec 7, 2013 at 8:09 AM, <bidon12...@free.fr> wrote:

> Hi Jon,
>
> thanks again !
>
> It is good that it is so simple. I obviously still have plenty to learn...
>
> Bye,
>
> Manuel
>
> Quoting Jon Harper <jon.harpe...@gmail.com>:
>
> > Hi Manuel,
> > add-connection is used to implement new controls. If you wanted to
> display
> > the current selection in another window, then just creating a
> label-control
> > from the selection model would be enough: the label-control gadget calls
> > add-connection and activate-model on its own.
> >
> > Also, models and control are most useful when you want a computation (for
> > example UI update) done every time the data changes (through
> > add-connection). Also they implement some kind of laziness because some
> > computations are only done if an observer has activated the model (for
> > control gadget, this is done when they are visible on screen, through
> > activate-model).
> >
> > For just copying the data when the user presses the select button you
> don't
> > need the features of models. You can just grab the value>> of the
> selection
> > model at the time the user clicks the button.
> >
> > How about having the same behavior when the "select" button is clicked as
> > when enter is pressed or when double clicking a row ? The following diff
> > passes a reference of the table to the quotation called by the button and
> > executes row-action on it:
> > http://paste.factorcode.org/paste?id=3120#1420
> >
> > Cheers,
> > Jon
> >
>
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to