Raoul Watson
9/11/2011 4:01:00 PM
On 8/26/2011 3:39 AM, Michael Cole wrote:
> Michael Cole wrote on 26/08/2011 :
>> MikeD brought next idea :
>>>
>>> "Michael Cole" <invalid@microsoft.com> wrote in message
>>> news:j34saf$uss$1@dont-email.me...
>>>> I have been trying to figure this out for ages and cannot. I need
>>>> some help.
>>>>
>>>> I am trying to emulate a standard email address field, where
>>>> addresses can be typed in or selected, and once recognised, they are
>>>> no longer text.
>>>>
>>>> As far as I can see, this is done by replacing the address with a
>>>> label (or something like that) which is embedded in the text at the
>>>> location that the address was. The question is how to embed the
>>>> label. The documentation on the RTBox.OLEObjects.Add method is
>>>> spectacularly unhelpful.
>>>>
>>>> Does anyone have any thoughts, suggestions or articles that they
>>>> could point me too as to how to accomplish this.
>>>>
>>>> Or alternatively, if I have got all of this wrong, could you let me
>>>> know how it should be done.
>>>>
>>>
>>>
>>> So what exactly are you asking? It sounds to me as if you just want
>>> hyperlinks in your RTB.
>>>
>>
>> No, its not hyperlinks. What I want is an effect, as in Outlook,
>> whereby validated email addresses are effectively in the RTBox as a
>> single character: -
>> - clicking anywhere on them highlights the entire text
>> - when arrowing forwards and backwards, it acts as a single character
>> - pressing delete will delete the entire address
>>
>> In effect, it acts like an embedded picture. Now there is plently of
>> examples on the internet as to how to embed pictures in RTBoxes, and
>> how to embed Excel spreadsheets, but nothing about how to embed a
>> label or other control.
>
> OK, I've been playing with this all day, and I have got to the following: -
>
> If I put the following in the RTF field: -
>
> {\field \fldlock {\*\fldinst QUOTE "blah"}{\fldrslt blah}}
>
> then theoretically it should act as a field. But it isn't - it is still
> allowing the field contents to be directly typed in.
>
> Anyone know anything about RTF?
>
>
If you can find an email with such link, you can save it as RTF. SImply
open it with notepad or a hex editor to see how it's done.