swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does control panel appear when it does?


From: Rick Riolo
Subject: Re: why does control panel appear when it does?
Date: Wed, 4 Feb 1998 07:44:09 -0500 (EST)

Marcus,

I thought we were supposed to avoid any calls
to Tk specific methods, since those will not map directly
into the Java version.  Am I wrong about that?

Re what I had in mind:
Well, for one example, suppose I want to have a "restart" button
that will completely reset the model to its original state.
Yes, I can add methods like that in, say, the probe
into the observer swarm, but it seems more natural for
it to be in the control panel with other similar items.

As an alternative: perhaps it would be "cleaner"
if all those buttons were in the probe for the ObserverSwarm.
Is there a compeling reason to have a separate 
control panel?   (this is a bit of a "academic" question...
I don't feel real strong about it, but it does
seem like an alternative approach that might also
make the ControlPanel aspect easier to modify by the
user.)

Ken, thanks for the pointer to the archive item.

- r

Rick Riolo                           address@hidden
Program for Study of Complex Systems (PSCS)
4068 Randall Lab                
University of Michigan         Ann Arbor MI 48109-1120
Phone: 313 763 3323                  Fax: 313 763 9267
http://www.pscs.umich.edu/PEOPLE/rlr-home.html

On 3 Feb 1998, Marcus G. Daniels wrote:

> Date: 03 Feb 1998 15:34:55 -0800
> From: Marcus G. Daniels <address@hidden>
> To: address@hidden
> Subject: Re: why does control panel appear when it does?
> 
> >>>>> "RLR" == Rick Riolo <address@hidden> writes:
> 
> RLR> I'm curious as to why the control panel comes up then.
> 
> It's a question of the timing of Tk_DoOneEvent, the routine that ends
> up sending idle events to the widgets for redisplay.  Usually,
> this routine is called from doTkEvents (from a Swarm schedule in
> the application itself), but it can also be called from other places,
> such as the probe display manager, when it asks for an update.
> 
> If for debugging reasons or whatever you want things synchronized,
> you can call doTkEvents to do that.
> 
> RLR> Are there any examples out there of creating a control panel with
> RLR> more user-defined buttons?
> 
> I'm not aware of any.  What did you have in mind?
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
>                   ==================================
> 

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]