[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] jost - gui helpfiles - some typos
Fredrik Olofsson wrote:
>
> Button.new(w, Rect(45, 70, 200,
> 20)).states_([["close",Color.black,Color.rand]]).action_({r.stop;
> w.close});
>
actually, that's not the problem. The problem is that the routine keeps
running for a tiny bit after the window closes, and tries to call the
SCStatic text. so the real fix is:
b.get( {arg v; {w.isClosed.not.if{ a.string= " Current
Frequency: "++v.round(0.01)}; }.defer} );
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/