Information générale
Catégorie:
Codage, syntaxe et commandes
>Hello All,
>I've included on a form an AcitveX Rich Text Control. The control source here is a cursor that I'ver created on the way in. Basically, what the user is seeing is the first three lines a text file.
>
>What I want to achieve is that the user highlights a section of the string shown in the control and drags it to a listbox where I have to be abe to show the substring value in the list box. On the rebound, I'll want to either change the backgroud color or underline the section chosen from the text control.
>
>1) How can I find the value of the highlighted section being dragged??
>2)Is the find() th right way to go?
>
>Any tips would be greatly appreciated.
>
>Sandy
Look at .SelLength, .SelStart and .SelText properties. I believe that they are part of the Rich Text box. The RTB also has a .Scan() method which is supposed to locate a piece of text. I never did get it to work well, but didn't spend much time with it either.
Steve
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement