Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Kalkidas Newsgroups: comp.lang.basic.visual.misc Subject: Re: RichEdit control question Date: Sun, 16 Oct 2011 18:21:58 -0700 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <01cc8b90$69e63db0$6d01a8c0@k8s8x> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 17 Oct 2011 01:20:09 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="a85D89xrZPR1TT0sKrI4uw"; logging-data="31687"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18N+ioIBF1cQxWum0f343jt" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111012 Thunderbird/8.0 In-Reply-To: <01cc8b90$69e63db0$6d01a8c0@k8s8x> Cancel-Lock: sha1:EGAKORmyheij//aL5DHCWRcgcmo= Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:503 On 10/15/2011 4:16 PM, Thorsten Albers wrote: > Kalkidas schrieb im Beitrag... >> And all I wanted to know is if there's anybody who knows the RichEdit >> control well enough to tell me what the global toggle for hidden text >> is, assuming it exists, which it almost certainly does. > >>> MS Word can toggle hidden text off/on almost instantaneously, even in >>> huge files with thousands of instances of hidden words. This indicates >>> that it is not using a process of iteration, but is toggling some global >>> feature. > >>> The feature must be part of the WinAPI RichEdit control, not the MS >>> Office engine, since the DevExpress XtraRichEdit control also has this >>> capability, and it doesn't require the presence of MS Office. > > The only thing which the Rich Edit Control and MS Word (and others like > e.g. WordPad) have in common is that they use the Text Object Model (TOM). > MS Word does _not_ make use of the Rich Edit Control! The Rich Edit > Control, MS Word and presumably also the "DevExpress XtraRichEdit" are > administrating the data with the TOM but each one of these has its own > method to render the data to a certain device like the screen. The > rendering is the point at which a "global toggle" for hidden text is to be > implemented. And while MS Word implements such a "global toggle" the Rich > Edit Control AFAIK does _not_. If you want to implement a "global toggle" > for hidden text you have to implement your own rendering method. Thank you for an informative reply. I'll see what I can learn about the TOM.