Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Richtext Control: Cut text
Message
De
24/01/2006 13:18:44
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
01089702
Message ID:
01089833
Vues:
23
>_cliptext = Thisform.oRtf.OBJECT.SelText
>Thisform.oRtf.OBJECT.SelText = ""
>>
>>I thought this was an easy task: I have a richtext RTF control on the form, and a button that is supposed to >work as "Cut".
>>
>>I tried
>KEYBOARD '{TAB}'
>>KEYBOARD '{Ctrl+x}'
>>but this does not do anything with the control.
>>
>>I also trid to check for olecontrol.SelStart and oleControl.SelLength and to concatenate the strings >>together, but the text formatting makes this very complicated.
>>
>>Any ideas?
thisform.oRTF.SelText
returns the text selected (nonformatted)
thisform.oRTF.SetRTF
returns the text selected in RTF format
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform