Re: How can I render long lines



The short answer to the question in the subject is: You don't.

Is it possible to write a text editor which uses GTK+ and shows correctly the file which is created
by the following code:

[ code that writes some hundreds of thousands printable ASCII characters without newlines to a file ]

Depends on what you mean with "correctly". If you mean, show it all at
once, and still be readable, I wonder what kind of display that would
use?

Obviously, any serious editor will handle viewport / scrolling
management itself, and not use the toolkit to format all of the buffer
("file") contents into one huge window, but just the parts of lines
that are visible. And sure, such a serious editor could well use GTK+.
But it wouldn't put all the text of a file being edited into a GTK+
widget.

 --tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]