🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #46427

2 windows - same text - howzitdone?

#46427
From: Ross Yahnke, MACC
Date: Sat, 17 Feb 1990 03:19
30 lines
1868 bytes
I'm trying to figure out a good way to do the following: For design
reasons I'll sometimes have two windows that will contain the exact
same text. The effect will be that of the split-screen editing
possible in MS-Word, Nisus, QUED, et al... Either window should
be editable and respond to the cursor keys, mouse, etc.

Now should I have both windows refer to the same TEHandle? Or
should I use a seperate TEHandle for each window, init them
with the same text, & send TEKey's to both to keep the text
exactly the same?

Currently I'm using 2 TEHandle's, one glitchy problem is when
I TEKey a cursor key to the inactive window a caret shows up.
I *must* send the cursor key, if I filter it out TEHandle will
lose track of where the insertion point is and subsequent real
chars get put in the wrong place. If only there was a way to turn
off the caret like maybe fool with the .caretState field in the
TERec, but it's undocumented so I don't know what to do...

It seems to me that if I use just a single TEHandle I'll have
some really trashy screen flicker in the inactive window when
I EraseRect; TEUpdate the inactive window. I'd like it all to
look smooth like those hi-priced split-screen editors mentioned
above.

Curiously, they don't use TE stuff at all - sez TMON, so I have
no idea howzit done... any hints? Thanks. - Ross

>>>      Internet: yahnke@macc.wisc.edu        <<<
>>>   Mille voix chuchottent <<c'est vrai>>    <<<
Technical Details
Message-ID: <3196@dogie.macc.wisc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!dogie.macc.wisc.edu!vms.macc.wisc.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!dogie.macc.wisc.edu!vms.macc.wisc.edu
From: yahnke@vms.macc.wisc.edu (Ross Yahnke, MACC)
Newsgroups: comp.sys.mac
Subject: 2 windows - same text - howzitdone?
Message-ID: <3196@dogie.macc.wisc.edu>
Date: 17 Feb 90 03:19:59 GMT
Sender: news@dogie.macc.wisc.edu
Organization: University of Wisconsin Academic Computing Center
Lines: 30