Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #408
| From | "mbyerley" <mbyerley@byerley.net> |
|---|---|
| Newsgroups | alt.comp.lang.vb, microsoft.public.vb.general.discussion, alt.comp.lang.visualbasic, comp.lang.basic.visual.misc |
| References | <j34saf$uss$1@dont-email.me> <j361e4$54m$1@dont-email.me> <j36poq$38v$1@dont-email.me> <j37ihc$og7$1@dont-email.me> |
| Subject | Re: Embedding a lable inside a Rich Text Box |
| Date | 2011-08-26 07:46 -0400 |
| Message-ID | <Y6udnZ8Ka_wDGsrTnZ2dnUVZ_jGdnZ2d@giganews.com> (permalink) |
Cross-posted to 4 groups.
"Michael Cole" <invalid@microsoft.com> wrote in message
news:j37ihc$og7$1@dont-email.me...
> 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?
>
http://msdn.microsoft.com/en-us/library/aa140277(office.10).aspx
> --
> Michael Cole
>
>
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Embedding a lable inside a Rich Text Box Michael Cole <invalid@microsoft.com> - 2011-08-25 17:07 +1000
Re: Embedding a lable inside a Rich Text Box "MikeD" <nobody@nowhere.edu> - 2011-08-25 13:40 -0400
Re: Embedding a lable inside a Rich Text Box Michael Cole <invalid@microsoft.com> - 2011-08-26 10:36 +1000
Re: Embedding a lable inside a Rich Text Box Michael Cole <invalid@microsoft.com> - 2011-08-26 17:39 +1000
Re: Embedding a lable inside a Rich Text Box "mbyerley" <mbyerley@byerley.net> - 2011-08-26 07:46 -0400
Re: Embedding a lable inside a Rich Text Box "Mayayana" <mayayana@invalid.nospam> - 2011-08-26 10:18 -0400
Re: Embedding a lable inside a Rich Text Box Michael Cole <invalid@microsoft.com> - 2011-09-01 10:42 +1000
Re: Embedding a lable inside a Rich Text Box "Mayayana" <mayayana@invalid.nospam> - 2011-08-31 22:18 -0400
Re: Embedding a lable inside a Rich Text Box "Jim Mack" <no-uce-ube@mdxi.com> - 2011-09-01 08:36 -0400
Re: Embedding a lable inside a Rich Text Box Michael Cole <invalid@microsoft.com> - 2011-09-02 10:22 +1000
Re: Embedding a lable inside a Rich Text Box Raoul Watson <WatsonR@IntelligenCIA.com> - 2011-09-11 12:00 -0400
csiph-web