Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to highlight selected text in rich edit
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00841487
Message ID:
00841507
Vues:
21
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform