Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!uakari.primate.wisc.edu!dogie.macc.wisc.edu!vms.macc.wisc.edu From: yahnke@vms.macc.wisc.edu (Ross Yahnke, MACC) Newsgroups: comp.sys.mac.programmer Subject: Two Windows, Same Text, Howtodoit? Message-ID: <3210@dogie.macc.wisc.edu> Date: 19 Feb 90 04:20:39 GMT Sender: news@dogie.macc.wisc.edu Organization: University of Wisconsin Academic Computing Center Lines: 27 (Don't think my 1st post on this took, so'll try again...) I'm working on an app that will sometimes have two different windows contain the same text. I want both windows to be editable, with changes in one reflected instantaneously in the other, sort of like the split-screen effect in MS-Word or Nisus. Using standard TE calls, what's a good way to do this? Should I declare a seperate TEHandle for each window and keep the text within in synch by sending TEKey's to both? Or should I just have 1 TEHandle? Have tried the 2 TEHandle method and I get a glitchy problem when I TEKey a cursor key to the inactive window, a caret (insertion point) is drawn and remains. I can't filter out the cursor keys cuz then the inactive TEHandle will lose track of where the insertion point is s'posed to be. Maybe I should dicker with the caretState or caretTime fields, but they're undocumented so I don't know what to do... If it weren't for this caret problem, I'd use this method as it otherwise looks good. The 1 TEHandle method would seem to have a problem, too, in that I'd have to do a EraseRect; TEUpdate combo to keep the inactive window properly updated, and the ensuing flashing would look bogus. Any Hints? Thanks! - Ross >>> Internet: yahnke@macc.wisc.edu <<< >>> Mille voix chuchottent <> <<<