swarm-support
[Top][All Lists]
Advanced

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

Re: saving window sizes as well as positions?


From: Catherine Dibble
Subject: Re: saving window sizes as well as positions?
Date: Fri, 08 Oct 1999 13:09:55 -0700

hi Marcus,

>>>>>> "CD" == Catherine Dibble <address@hidden> writes:
>CD> for a way to save window _sizes_ as well as positions, to no
>
>[widget saveSaveSizeFlag: YES] should do that.

graphCanvas    IsA    Canvas   IsAn     ArchivedGeometryWidget

ArchivedGeometryWidget implements setSaveSizeFlag: (BOOL) flag

But    [graphCanvas setSaveSizeFlag: YES];
gives me a   "    'setSaveSizeFlag:' not implemented by protocol  "
I notice that it is in tkobjc/ArchivedGeometryWidget.h, but not in gui.h

>CD> // Use ArchivedGeometryWidget's registerAndLoad rather than CreateEnd. 
>CD> graphCanvas = [graphCanvas registerAndLoad];
>CD> GUI_UPDATE_IDLE_TASKS();
>
>Hmm, I wonder why (and I'm not sure what the desired behavior is
>either -- the call to GUI_UPDATE_IDLE_TASKS makes me wonder).  

If I don't use the GUI_UPDATE_IDLE_TASKS there, I get a blank
canvas with no graph and with my bugs all in a wiggly heap in the
extreme northwest corner.

>Canvas is an ArchivedGeometryWidget, and so -createEnd should 
>result in a registerAndLoad call via the inherited -createEnd.

Yes, that's where I knew I could use registerAndLoad.  I need that part
of the createEnd, but the rest of the super createEnd generates this error:

warm201/lib -Wl,--rpath -Wl,/swarm201/lib
//e/lab/geograph $ geo
(Tcl -eval:) window name "w40477592" already exists in parent
    while executing
"canvas .w40473384.w40477592"
while evaluating: canvas .w40473384.w40477592

When I call only the -registerAndLoad instead of the super's full createEnd,
it runs perfectly without any error messages.

I have a Canvas with Nodes, Links, and Circles running around on it,
so perhaps I am running into unusual GUI combinations for Swarm?

thanks!

Catherine
*===============================================*
This problem, too, will look simple after it is solved. 
                                            -- Charles Francis Kettering 
 Catherine Dibble                                      
 Department of Geography               www.econ.ucsb.edu/~cath 
*===============================================*



                  ==================================
   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]