ECOOPER@RCCA.BBN.COM (Eric Cooper x2947) (12/09/87)
I am trying to use TEdit programmatically, but am finding it problematic. My application will be sending a considerable amount of text to a TEdit window. I am using TEdit to insure that the text will be nicely formatted regardless of the dimensions of the window, and that a certain amount of the text will be reviewable by scrolling. However, I would also like to have text clipped from the beginning of the stream, when the size of the stream becomes unnecessarily long. I have been able to do all this, but after deleting from the beginning my pointer is at the beginning and so is the focus of the window. I would like to have the window automatically scroll back to the end of the stream, but "intelligently" (i.e. displaying as much of the newly added text as possible. Even better, I would like to have the whole deleting routine take place invisibly...instead of scrolling to the beginning, underlining selection, deleting it, etc. Any and all suggestions appreciated. -Eric Cooper BBN Labs Cambridge, MA (617) 628-1824
ECOOPER@RCCA.BBN.COM (Eric Cooper x2947) (01/07/88)
I posted this a couple weeks ago and have yet to receive a single response. Surely someone must know something about using TEdit. Please don't be shy. Thanks in advance. ----- I am trying to use TEdit programmatically, but am finding it problematic. My application will be sending a considerable amount of text to a TEdit window. I am using TEdit to insure that the text will be nicely formatted regardless of the dimensions of the window, and that a certain amount of the text will be reviewable by scrolling. However, I would also like to have text clipped from the beginning of the stream, when the size of the stream becomes unnecessarily long. I have been able to do all this, but after deleting from the beginning my pointer is at the beginning and so is the focus of the window. I would like to have the window automatically scroll back to the end of the stream, but "intelligently" (i.e. displaying as much of the newly added text as possible. Even better, I would like to have the whole deleting routine take place invisibly...instead of scrolling to the beginning, underlining selection, deleting it, etc. Any and all suggestions appreciated. -Eric Cooper BBN Labs Cambridge, MA (617) 628-1824
Messenger-AI.SBDERX@XEROX.COM (01/07/88)
Not a helpful message, I'm afraid. Just to let you know I posted a similar question internally a while back (how to programatically delete TEdit text neatly, ie. without scrolling to the beginning and underlining), after spending a few hours trying to suss it myself. I got no response either - I guess either it can't be done or nobody has found out how to do it yet. -- Hugh
fons@cs.vu.nl (Fons Botman) (01/13/88)
In article <8801061910.AA23418@ucbvax.Berkeley.EDU> ECOOPER@RCCA.BBN.COM (Eric Cooper x2947) writes: >I posted this a couple weeks ago and have yet to receive a single response. >Surely someone must know something about using TEdit. Please don't be shy. >Thanks in advance. >----- >I am trying to use TEdit programmatically, but am finding it problematic. >My application will be sending a considerable amount of text to a TEdit >window. I have the same kind of problem. I have tried to use a TEdit window as a kind of trace-window because important data tended to scroll off the window too soon, but I didn't get it working the way I would like it. I would like a single stream to write to. An optional maximum size of the buffer contents like Texec. Scrolling should be turned on and off using a menu or be done only when the caret (at the bottom) is visible, this would enable me to look at or copy other parts of the trace while the program is running and generating trace output. If scrolling occurs, then it should scroll only one or a few lines at a time, to keep as much information as possible in the window. It may scroll more than one line to speed up printing, as scrolling seems to be a slow operation. Does some kind TEdit guru have a solution for these kind of problems? The Fons