[comp.sys.mac.programmer] Think Class Languages and a complicated window...

wayner@kama.cs.cornell.edu (Peter Wayner) (02/13/91)

I would like to build a window with do different text windows.
The first would be a small edit pane without scroll bars for
handling inputted words. The second would be a larger, scrolling
pane for statically displaying words from a file. I would like
to clip from this window but not allow other edits. 

So far I've gotten this far:

1) Created a CEditText and a CStaticText which are each enclosed
in their own CScrollPane. The CScrollPane associated with the 
CEditText does not have bars, but the one associated with the 
CStaticText does. I've connected up the panes using InstallPanorama
and the result is that I can edit in the edit text and scroll the
static one. I can't clip from the static one however. 

That much is expected. However when I change the CStaticText to 
be an CEditText, it still won't allow editting in the larger, scrolling
pane. 

Is there any tricks I should know? Does anyone have a sample IWindow
for a complex situation like this?

Thanks for all the help,

Peter Wayner



Peter Wayner   Department of Computer Science Cornell Univ. Ithaca, NY 14850
EMail:wayner@cs.cornell.edu    Office: 607-255-9202 or 255-1008
Home: 116 Oak Ave, Ithaca, NY 14850  Phone: 607-277-6678

Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) (02/15/91)

Peter Wayner writes in a message to All

PW> That much is expected. However when I change the CStaticText 
PW> to be an CEditText, it still won't allow editting in the larger, 
PW> scrolling pane. 

Don't forget to change your gGopher. Your CEditText may have to be modified
to switch "itsMainPane" to itself when you get a mouseClick.


Lawson
 

--  
Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English
Internet: Lawson.English@p88.f15.n300.z1.fidonet.org