Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #495

Re: RichEdit control question

From Kalkidas <eat@joes.pub>
Newsgroups comp.lang.basic.visual.misc
Subject Re: RichEdit control question
Date 2011-10-15 12:45 -0700
Organization A noiseless patient Spider
Message-ID <j7cno4$mac$1@dont-email.me> (permalink)
References <j6vomu$ugh$1@dont-email.me> <j781an$4t9$1@speranza.aioe.org> <j7c6m8$8fo$1@dont-email.me> <vnfj97h4j946qd1mbkhvfmm6s6f9vqr2df@4ax.com>

Show all headers | View raw


On 10/15/2011 10:25 AM, ralph wrote:
> On Sat, 15 Oct 2011 07:53:57 -0700, Kalkidas<eat@joes.pub>  wrote:
>
>> On 10/13/2011 5:55 PM, Eric Coleman wrote:
>>> On 10/10/2011 4:41 PM, Kalkidas wrote:
>>>> I need to have a RichTextBox be able to toggle Hidden text off and on.
>>>> MSWORD does this by pressing shift+ctrl+*.
>>>>
>>>> Obviously I'll have to use unmanaged code and the RichEdit control.
>>>> Anyone know how to do this?
>>>>
>>>> I'm using VB 2010 and Win7.
>>>
>>>
>>> I wasn't sure what "hidden text" in MS Word actually meant, so I tested
>>> it out. It looks like you can accomplish the same thing with some sort
>>> of custom table you create, and then iterate through to replace the
>>> "hidden text" with something else. You'll need to be careful for sure,
>>> might even consider having two rich text boxes, one with the original,
>>> and then a second for displaying the 'hidden text.' All you really need
>>> to do is replace things like VbCrLf with Chr(182)&  VbCrLf. You can
>>> define yourself how you want the hidden text be represented.
>>
>> 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.
>>
>> I'm looking through the rtf specification to see if I can find anything.
>>
>
> I too was a tad confused about what you were trying to do, but now it
> is clearer.
>
> There are several parts to your question.
>
> 1) There are multiple RTF Specifications. This specification merely
> 2) There are editors and controls ("readers") implemented based on a
> specific specification. And ...
> 3) Not all editors and controls implement all the features of any
> given RTF specification.
>
> You dismissed BTIS Jeff response a tad too quickly. I believe he is
> correct and the RichText control distributed with VB6 does not support
> that particular feature.
>
> The easist 'fix' if a control doesn't support a feature you need is to
> find a control that does.

Right, that's why I was asking about the WinAPI RichEdit control. Any VB 
RichTextBox will be based on (some version of) the WinAPI RichEdit 
Control, though it might not support all of the RichEdit control's 
features. But using calls to the API, a RichEdit control
can be used in place of a RichTextBox.

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.

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-10 14:41 -0700
  Re: RichEdit control question "Nobody" <nobody@nobody.com> - 2011-10-11 00:53 -0400
  Re: RichEdit control question BTIS Jeff <btisjb@gmail.com> - 2011-10-11 08:17 -0700
    Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-11 14:17 -0700
      Re: RichEdit control question "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-10-11 22:27 +0100
        Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-11 14:59 -0700
          Re: RichEdit control question "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-10-12 08:00 +0100
            Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-12 16:18 -0700
              Re: RichEdit control question Deanna Earley <dee.earley@icode.co.uk> - 2011-10-13 08:45 +0100
              Re: RichEdit control question "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-10-13 10:24 +0100
              Re: RichEdit control question "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-10-13 11:41 +0100
              Re: RichEdit control question "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-10-13 13:30 +0100
  Re: RichEdit control question Eric Coleman <eric@strategon.com> - 2011-10-13 19:55 -0500
    Re: RichEdit control question "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-10-14 09:30 +0100
    Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-15 07:53 -0700
      Re: RichEdit control question "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-10-15 17:03 +0100
      Re: RichEdit control question ralph <nt_consulting64@yahoo.net> - 2011-10-15 12:25 -0500
        Re: RichEdit control question ralph <nt_consulting64@yahoo.net> - 2011-10-15 12:29 -0500
        Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-15 12:45 -0700
          Re: RichEdit control question ralph <nt_consulting64@yahoo.net> - 2011-10-15 15:24 -0500
          Re: RichEdit control question "Thorsten Albers" <gudea@gmx.de> - 2011-10-15 23:16 +0000
            Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-16 18:21 -0700
              Re: RichEdit control question "Mayayana" <mayayana@invalid.nospam> - 2011-10-16 23:15 -0400
              Re: RichEdit control question "Mayayana" <mayayana@invalid.nospam> - 2011-10-17 17:19 -0400
                Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-17 15:59 -0700
                Re: RichEdit control question "Mayayana" <mayayana@invalid.nospam> - 2011-10-17 19:59 -0400
                Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-17 17:34 -0700
                Re: RichEdit control question "Mayayana" <mayayana@invalid.nospam> - 2011-10-17 23:46 -0400
                Re: RichEdit control question Kalkidas <eat@joes.pub> - 2011-10-18 07:35 -0700
                Re: RichEdit control question "Thorsten Albers" <gudea@gmx.de> - 2011-10-18 15:17 +0000
                Re: RichEdit control question "Mayayana" <mayayana@invalid.nospam> - 2011-10-19 10:09 -0400
                Re: RichEdit control question "Mike Williams" <Mike@WhiskyAndCoke.com> - 2011-10-19 18:26 +0100
          Re: RichEdit control question "Mayayana" <mayayana@invalid.nospam> - 2011-10-15 19:53 -0400
            Re: RichEdit control question "Thorsten Albers" <gudea@gmx.de> - 2011-10-16 03:32 +0000
              Re: RichEdit control question "Mayayana" <mayayana@invalid.nospam> - 2011-10-16 12:02 -0400
                Re: RichEdit control question "Thorsten Albers" <gudea@gmx.de> - 2011-10-16 22:10 +0000
                Re: RichEdit control question "Mayayana" <mayayana@invalid.nospam> - 2011-10-16 19:17 -0400
                Re: RichEdit control question "Thorsten Albers" <gudea@gmx.de> - 2011-10-17 09:43 +0000

csiph-web