yahnke@vms.macc.wisc.edu (Ross Yahnke, MACC) (02/17/90)
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>> <<<