Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to highlight selected text in rich edit
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00841487
Message ID:
00841507
Views:
20
You can use SelBold and SelColor properties of the control
lnPos = Thisform.RTF.Object.Find(...)
IF lnPos >= 0
  Thisform.RTF.Object.SelBold = .T.
  Thisform.RTF.Object.SelColor = RGB()
ENDIF
>Hi, Folks!
>
>I've tried unsuccessfully to implement the following:
>
>There's a richedit with a loaded file. Then, I've created an Edit as a Search. The user has asked me that any word that coincides with the typed text be highlighted and in bold form. In this case, he wants all the matches. I've just gotten the first match and, when changing the color, the whole richedit has also changed, not only the selection.
>
>Does anybody have an idea how I can solve this?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform