Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: Split window Message-ID: <10151@goofy.Apple.COM> Date: 11 Sep 90 17:05:43 GMT References: <1990Sep11.005619.27713@ux1.cso.uiuc.edu> Distribution: comp Organization: Apple Computer Inc., Cupertino, CA Lines: 34 resnick@cogsci.uiuc.edu (Pete Resnick) writes: >I am beginning a programming project in which I want a split text window: >that is, I want a window with two scrollable regions (two thumb controls) >into which text will be typed. Just for your info, the text will be added >to each region such that you will not be able to edit the lines above you, >though you will be able to copy from them and see them by scrolling up. The >only editing you will be able to do is typing characters, return, backspace, >and pasting characters. > >What would be the simplist way to implement this? The Window Manager only >provides one thumb control and no obvious way to implement two independent >scrolling regions. There is also nothing obvious in TE, and I do not want >most of TE's editing features. The Window Manager just provides the windowing support. What you do within a window is up to you. To implement a split window, you can just draw a line in the middle of the window and put a scrollbar in each section. Then clicking on a particular scrollbar will scroll that section up or down. If you wanted to use TextEdit to handle all the text manipulation, you could also setup a couple of TextEdit records--one for each section--and do the copies and pastes into the currently active window section. steve -- ______________________________________________________________________________ Steve Christensen Internet: stevec@goofy.apple.com Apple Computer, Inc. AppleLink: STEVEC 20525 Mariani Ave, MS 81-CS CompuServe: 76174,1712 Cupertino, CA 95014 "You just contradicted me." "No I didn't." ______________________________________________________________________________