There's no way to do it from NetLogo code out of the box. However, it shouldn't be terribly difficult to make an extension with primitives for this. Once you have a handle on the `ButtonWidget` object (let's say that you've placed this widget objecct into a variable called "button"), you should be able to do `button.foreverOn = true` or `button.foreverOn = false` within the extension code at will in order to change whether or not the forever button is engaged.

Jason Bertsche
Senior Software Developer - NetLogo

On 03/03/2014 08:49 AM, Chris Coat wrote:
Hi everybody.

I was wondering if there is any trick to be able to start a forever button from a netlogo code (or extension). And of course to be able to stop it as well, like calling the "stop" function but from another procedure.

Thanks
--
You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to