swarm-support
[Top][All Lists]
Advanced

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

Re: setGraphWindowGeometryRecordName:


From: Rick Riolo
Subject: Re: setGraphWindowGeometryRecordName:
Date: Sun, 4 Jan 1998 10:29:05 -0500 (EST)

Ken-
Thanks for looking all that stuff up in the sources.
You are right that setWindowGeometryRecordName
works for BLTGraph's.

Swarm keepers-
I would suggest that EZGraph's using one method and
BLTGraph's using another method is just inviting confusion,
especially for beginning users.  It would be best if they
all used the same setWindowGeometryRecordName, but if that
can't be done, I think it would be more consistent and
so easier to remember if objects that are clearly 
related, eg BLTGraphs and EZGraphs, use the same method.
Perhaps in future versions one or the other could be changed?

Re EZBin...
I think *all* GUI objects should have the same capability
for having their screen location saved.
Could that be included in future versions?


But let me repeat---being able to save window positions is great new 
feature!   I'm sure all swarm users will appreciate as much as I do 
not having to reposition windows on each run of a program!
thanks again!
 - 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://pscs.physics.lsa.umich.edu/PEOPLE/rlr-home.html
http://pscs.physics.lsa.umich.edu//pscs.html

On Sat, 3 Jan 1998, Ken Cline wrote:

> Date: Sat, 3 Jan 1998 14:39:41 -0500 (EST)
> From: Ken Cline <address@hidden>
> To: Swarm-Support <address@hidden>
> Subject: Re: setGraphWindowGeometryRecordName:
> 
> 
> Rick,
> 
> It appears to me that ArchivedGeometryWidget (which is a
> superclass of BLTGraph, but *not* of EZBin) supports a
> method called `setWindowGeometryRecordName' but not a method
> called `setGraphWindowGeometryRecordName'.
> 
> Have you tried just `setWindowGeometryRecordName'?
> 
> I'm not sure you'll be able to use `setWindowGeometryRecordName'
> feature with instances of the EZBin class since (1) EZBin is
> a type of probe and (2) the "aHisto" ivar is an instance of
> the Histo class which does not subclass the ArchivedGeometryWidget
> class. (The Histo class subclasses Widget directly, btw.)
> 
> Oh, now I see the confusion... If you look at EZGraph you'll
> notice that *it* has the method called `setGraphWindowGeometryRecordName'.
> Also note that when `createEnd' is called then it in turn calls
> `setWindowGeometryRecordName' for the `theGraph' ivar which
> is an instance of BLTGraph.
> 
> Perhaps all that is needed is make the Histo class subclass
> ArchivedGeometryWidget (instead of Widget) and then make
> additions to EZBin similar to those in EZGraph.  Although I
> doubt it could be that easy. =:-)
> 
> Hope that helps.
> 
> Ken.
> 
> 
> On Fri, 2 Jan 1998, Rick Riolo wrote:
> 
> > 
> > I noticed this great new feature in swarm-1.0.4 (to make it
> > easily to save and restore window positions), and I see
> > it works fine for heatbugs widgets/windows like the 
> > ZoomRaster worldRaster, and the EZGraph unhappyGraph.
> > 
> > I tried to use it with a BLTGraph as follows:
> >    BGraph = [BLTGraph createBegin: [self getZone]];
> >    [BGraph setGraphWindowGeometryRecordName : "tempHeatGraphWindow"];
> >    BGraph = [BGraph createEnd];
> > 
> > But then I get this error:
> > 
> > HeatbugObserverSwarm.m:181: warning: `BLTGraph' does not respond to 
> > `setGraphWindowGeometryRecordName:'
> > 
> > In the release notes for 1.0.4 it says of the
> > ArchivedGeometryWidget (which provides the method above):
> >   "...which many widgets now inherit."
> > 
> > I get a similar message for an EZBin, where from:
> > 
> >   unhappyBin = [EZBin createBegin: globalZone];
> >   [unhappyBin setGraphics: 1]; [unhappyBin setFileOutput: 0]; 
> >   [unhappyBin setTitle: "unHappinessDistribution"];
> >   [unhappyBin setGraphWindowGeometryRecordName : "unhappyBinWindow"];
> > 
> > I get the message:
> > 
> > HeatbugObserverSwarm.m:222: warning: `EZBin' does not respond to 
> > `setGraphWindowGeometryRecordName:'
> > 
> > 
> > Does this mean BLTGraph and EZBin do not inherit the 
> > ArchivedGeometyWidget? 
> > If not, are there plans for that (so that their positions can be
> > saved/restored, too)?
> > 
> > Or maybe I'm not using it correctly for a BLTGraph/EZBin and all its 
> > parts?
> > 
> > thanks!
> >  - 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://pscs.physics.lsa.umich.edu/PEOPLE/rlr-home.html
> > http://pscs.physics.lsa.umich.edu//pscs.html
> > 
> 
> _________________________________________________________
> Ken Cline                             address@hidden
> SAIC                                 VOICE (410) 571-0413
> Annapolis, MD                          FAX (301) 261-8427
> 
> 
> 
>                   ==================================
>    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]