Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to highlight a string in a Rich Text control
Message
From
06/02/2000 09:22:47
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00327959
Message ID:
00328028
Views:
36
>>I had a Rich Text Box in which I need to highlight some words. Had someone experience on this ?
>>
>>Are there another OCX for this ?
>
>Select the text in the control to highlight either programatically using the SelStart and SelLength properties, and then set the appropriate property for the selected text, eg:
>
>thisform.rtbFoo.SelStart = 10
>thisform.rtbFoo.SelLength = 8
>thisform.rtbFoo.SelBold = .T.
>
>would set the 8 characters selected bold programmatically in a control on the form called rtbFoo.

Thanks Ed:

Indeed I had used SelStart and SelLength properties as you say but in a RTF files exist some formatting strings not visible, that prevent to take the exact position of the words to highlight.
Previous
Reply
Map
View

Click here to load this message in the networking platform