🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #87068

Re: [Xnews] word wrap behavior

#87068
From: Robert Amesz
Date: Sat, 10 Nov 2001 16:33
55 lines
3473 bytes
Luu Tran wrote:

> Robert Amesz <sheershion@mailexpire.com> wrote in 
> news:Xns915411E9028FDrcamesz@amesz.demon.nl...
> 
>> If, as I suspect, the native richedit control is 
>> responsible for the wrapping, this is probably not very easy to 
>> achieve: the control itself would have to be made narrower,
>> leaving a wide strip of fallow screen real estate on the right (or
>> possibly left) hand side of the screen.
>> 
> 
> The windows richedit control doesn't allow you to wrap text at a
> specific column (not if you want to handle word wrapping yourself).
> In the editor window, I manage this by limiting the client region
> and force users to usw fixed width font.

Ah, so *that* is the reason for that. Not that I mind using fixed 
pitch fonts for editing: it's much easier to detect spurious spaces 
or other characters that way


> If I were better at doing low level stuff, I would just write my
> own conteol and chuck richedit for good.

I still think (as I've said before) a HTML component[*] would be a 
pretty good thing to use as a display component. First of all, nearly 
all Windows users already have this on their machines (courtesy of 
IE) and it's likely to be loaded already due to the Explorer/IE 
integration. This would give much more control over how the message 
is presented.

A *huge* advantage of using the IE as display component is that most 
of the character set issues can be resolved: IE can display just 
about any character set you throw at it, provided your system already 
has the proper glyphs for that character set (and if it doesn't you 
probably can't read that language anyway).

For editing messages I would advise Scintilla, *but* for the fact 
that:
1 - It doesn't (yet) know how to wrap long lines.
2 - It's written in C, and I don't know of any Delphi wrapper for it.
It's a pity, because the syntax colouring in Scintilla is excellent, 
and you can write custom lexers to assign styles to different text 
elements. (Which would mean, for instance, that you could have 
multilevel quote colouring which is exactly the same as the one in 
your message display.)


Robert Amesz
-- 
[*] I'm _not_ advocating the use of HTML on internet, it's purely to 
allow conventional messages to be displayed with more control over 
how everything looks.
Technical Details
Message-ID: <Xns9155B27EBC5F1rcamesz@amesz.demon.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <Xns9153659C4208maddogonlineno@news.online.no> <Xns915411E9028FDrcamesz@amesz.demon.nl> <Xns915485B08A6CBluutrangeocities@207.126.101.97>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9155B27EBC5F1rcamesz@amesz.demon.nl>
Subject: Re: [Xnews] word wrap behavior
Date: Sat, 10 Nov 2001 16:33:09 -0000
From: Robert Amesz <sheershion@mailexpire.com>
References: <Xns9153659C4208maddogonlineno@news.online.no> <Xns915411E9028FDrcamesz@amesz.demon.nl> <Xns915485B08A6CBluutrangeocities@207.126.101.97>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: Posted via Supernews, http://www.supernews.com
User-Agent: Xnews/4.11.07 Hamster/1.3.22.104
X-Face: i/!"w>!GV8UL{^20`L2OEvvFz(T"{bFYn2<:u"5<4Blsl-isl(bTDMKVqWL?nk-VY7[[);j =yB|s]|c3nRG4c7^1#+/(D)v4ToNC;PoE=\7baN'i75%+2NhzndU~qJUTI*-v[R"l)Q$GOX3o(-#7C iY6a`%._v`G8cG`!/3,mt?pkyvjv3f}\-mZiNnXJ9EK~D>Qs(ckW8yam<<T!\Kf>`wtj3>eEAAV\
Reply-To: rcamesz@dds.nl
X-Complaints-To: newsabuse@supernews.com
Lines: 54