[comp.sys.mac.programmer] Problem with Think Pascal TCL

yossie@fnal.fnal.gov (Yossie Silverman) (03/15/91)

Ok, a refinement of my problem which seems to be a bug in TCL:

I have a document with a window.  The window contains a scrollpane which 
has a panorama installed in it which has an edittext installed in it (the 
edittext is actually a subclass of edittext, but is essentially the same.)

The parnorama has an adjustcursor method which overrides the pane one.  I 
did nothing to the edittext adjustcursor method.

The problem is that when the panorama's adjustcursor method gets called, 
the visrgn is setup as if the edittext is called, but the rest of the 
regions are setup for the panorama.  There seems to be a disagreement as 
to what the local coordinate system is supposed to be.

What this causes is a total screwup of the mousergn and thus a screwup of 
the whole cursor shape handling mechanism (which I use for context 
sensitive help in a floating window, as well.)

I also added a prepare at the start of the adjustcursor routine.  This
dir NOT help a bit.  The origin's seem to be set correctly, but the coord
system is still screwed up!

When I Hide the edittext view, the adjustcursor method works just fine.

What to do?  - Yossie

P.s. answer in email.


---

yossie@fnal.fnal.gov; yossie@fnccf.bitnet
What did the Caspian Sea? - Saki