I have a qeustion regarding the use of such a technique.  how to you work out
WHICH occurance of the selected text is the one to work with.  Won't the example
show just find the first occurance without knowing that it might actually be the
second / third / etc that was selected.

eg:    "the purpose of this is to test the code"

    if the user selects "the", the example you gave would simple alter the first
word and not the eighth.
    if the use selects "is", the last two letters in "this" will be altered.

Is there any method of locating the text more accurately?

Paul K Egell-Johnsen wrote:

> Richard Bennett wrote:
> >
> > If I understand, you want to select some text, and click a button to add
> > <b></b> around it?
> > I have an example of that here:
> > http://www.richardinfo.f2s.com/dynapi/Richard_Examples/bold_italic_onTheFly.
> > html
> > you don't see the tags, because they are rendered, but in a text box you
> > would see them of course.
> > This doesn't specifically need the DynAPI.
>
> Exactly what I was looking for. Thank you.
>
> --
> Paul K Egell-Johnsen
> Developer/PR Manager
> eZ systems as
> http://ez.no/
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to