Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is something highlighted?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00171609
Message ID:
00171773
Views:
34
>>Is there a way to kow when some text is highlighted? I know in a control you can use Selstart, SelLength or SelText, however how can you determine if and what is highlighted in say a browse screen or a memo field?
>>
>>Any help is appreciated.
>>Thanks
>
>Hi Matthew,
>
>The _EdGetPos() function in Foxtools can retrieve the anchor or insertion position of the cursor for edit windows. I haven't tried this with a memo field, but my guess would be that it would work the same. You might want to check out my Extended Foxtools Help file (in the download section) for details, since you have to get a window's whandle.
>
>In order to determine if anything's selected the only way I know is to first save the current contents of the clipboard, use either the foxtools _EdCopy(), SYS(1500) functions or the keyboard comand to copy the highlighted data, check the length of _CLIPTEXT, then restore the information as Dan suggested.
>
>hth,


Hi George,

Thanks for the info. I also downloaded your Help file and found it to be extremely useful.

Again, Thanks
Matt Martin
matthew.martin@Juno.com

Because there are no facts, there is no truth,
Just data to be manipulated.
- Don Henley from "In the garden of Allah"
Previous
Reply
Map
View

Click here to load this message in the networking platform