General information
Category:
ActiveX controls in VFP
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only