Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active X
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00120435
Message ID:
00120766
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform