Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching for text in a RichTextControl
Message
 
À
14/07/2005 12:03:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01032533
Message ID:
01032829
Vues:
22
I would like to use the rtf-control find.
If for instance you have entered Japanse text the .Text will only contain ?????? (question marks).
Considerint the fact that there is a find method I would like to know its usage.

Regards,

Ron


>There are two properties for the RichText Controls that contain the text entered: .Text and .TextRTF. The first (.Text) gives the plain unformatted text that could be used with ATC(); the second contains the fully formatted RTF text. When searching with ATC() and using the .Text property, the index returned does not match the offset in the RTF text and can be quite complicated to determine (have to account for all header codes and then any formatting codes). You would need to know the offset in the RTF text for highlighting or positioning the cursor (I am guessing that you want to provide this functionality for end-users). Also, you have to be careful in replacements due to the possible embedding of RTF codes.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform