[comp.sys.mac.programmer] THINK C TCL View Problem

jfrancis@umaxc.weeg.uiowa.edu (Jeff Francis) (01/23/90)

I'm having a little problem with TCL.  Here's what I have:

My Document Window's theMainPain is a ScollPane with a 800x800 bounded
Panorama.  Inside the Panorama I have a single Pane (A) that contains 40
Panes (B1-40) and a Pane (C) that contains two other Pains (D1 and D2).  

My problem is/was that the two Pains D1,D2 inside Pane C would not display
themselves when I first ran the program.  But, after I would scroll
the panorama and then click on either D1 or D2 (DoClick causes them to redraw
their contents) everything would work ok.  Well, after some messing around,
I found that Panes D1 and D2's apertures were set to 0,0,0,0.  I traced
through the code and found that they were being "clipped" based on the
original Document Window size (Initialized via a WIND resource). This was odd
in that their enclosing Pane C was not being clipped at all and was drawn
without a problem on startup.  When I increased the Document Window's size
via ResEdit so that it included the whole screen, everything worked correctly.

It was my understanding that when a Window changes size,
all of its subviews would recalculate their apertures.  My Document's
BuildWindow uses the Decorator to place the new window which in turns
sould take care of the ChangeSize stuff but this doesn't seem to happen!

Any hints?

-jpf

---------------------------------
Jeff Francis
CS Student, University of Iowa
jfrancis@umaxc.weeg.uiowa.edu
---------------------------------