[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Swarm-Support] Panel buttons
From: |
Paul Box |
Subject: |
RE: [Swarm-Support] Panel buttons |
Date: |
Sat, 22 Mar 2003 14:36:35 -0700 |
This is only half an answer: the program's reaction to pushing the 'stop'
button happens
when the message 'doTKEvents' is called. In most applications, this is in the
actionGroup
of observerSwarm, and can be found in 'buildActions'. Typically, the
actionGroup starts
with something like [super buildActions], then [modelSwarm buildActions], and
then all of
the instructions for updating observerSwarm's graphic widgets. If you can
find a way to
have [observerSwarm doTKEvents] called at any time, not just after completion
of a
modelswarm's actionGroup, then your problem would be addressed.
>===== Original Message From Li An <address@hidden> =====
>Hi Swarm folks,
>
>I wonder if it is possible to stop the process whenever I click the stop
>button in the main control panel of any Swarm program--now it only stops
>the program after each time step. I appreciate it if you have comments or
>suggestions.
>
>Best regards,
>
>Li
>
>_______________________________________________
>Support mailing list
>address@hidden
>http://www.swarm.org/mailman/listinfo/support
////////////////////////////////////////
// Paul Box
// Aquatic, Watershed, and Earth Resources
// Utah State University
- RE: [Swarm-Support] Panel buttons,
Paul Box <=