When running your code in the listener, it doesn't get killed immediately here. What version are you using ?
Also, a better way to share code on this list is to use the pastebin: http://paste.factorcode.org/ As for your checkbox problem, I think you have 2 issues: - variable scope: the quotations run by the UI thread (when you click on the checkbox) are executed in a different scope than the one where you declare the variable var. var is not accessible there. You could use global variable. - the checkbox will toggle the arrow model, and that doesn't run your quotation. you would need to toggle the base model for that. A possible fix would be not to use a variable and arrow, but instead pass the model directly to the quotation for the button: http://paste.factorcode.org/paste?id=2345 Cheers, Jon On Fri, Sep 16, 2011 at 3:23 PM, Michele Pes <mp8...@rambler.ru> wrote: > Hi to all factorers! > I was trying to develop a trivial gui example. > Of course my code is bugged but when I execute this 6-line script > the listener kill immediately. > > 1) Can you tell me how to avoid this? > 2) Can you tell me how to make the button work according to the checkbox ? > > Thank you very much, > michele pes > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > http://p.sf.net/sfu/rim-devcon-copy2 > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk