Newsgroups: comp.windows.ms.programmer
Path: funic!fuug!mcsun!dxcern!dscomsa!news.DKRZ-Hamburg.DE!Sirius.dfn.de!coli.uni-sb.de!sbusol.rz.uni-sb.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!agate!ames!kum.kaist.ac.kr!usenet
From: weon@cosmos.kaist.ac.kr (Taehwan Weon)
Subject: Re: Text editing and display capability needed
Message-ID: <1993Feb16.123831.1354@kum.kaist.ac.kr>
Organization: KAIST
Date: Tue, 16 Feb 93 12:38:31 GMT
Lines: 41

In article   writes:
>I am developing an application (in C) in which I need a window
>which contains text (read only) and this text may contain
>multiple highlighted selections.  Can this be done simply
>with the Windows API or does this need complex text manipulation
>and display code to be written?
>
>More generally, how do you get a text window in which you can
>display (and/or edit) text which is not all in the same style
>(e.g. different fonts/sizes/colours etc)?  
I have written such application which feeds input text in RTF format.
But I don't know that the work is easy or difficult.
All that I have done in the application are as follows:
	(1) looked for a public RTF parser. (You can find it
	    from internet society by using archie.)
	(2) designed a document data structure.(In my case it has 5 level
	    tree structure)
	(3) ported the RTF parser to reflect my document data structure.
	(4) wrote some display module for Windows.
	    (because my work was for my company, I can not describe in detail.)

I think that the key point to make what you want is to have well defined
internal document representation.

> Are there third party
>libraries (preferably with source) which provide this kind
>of functionality?

I know that serveral companies have such commercial libraries.
But I can not recall the company names and that they support inline formatting.

e-mail to me for more information.


Good luck

--
THW(Taehwan Weon)

--------------------------------------------------------------------------------
KAIST, Seoul Korea
