Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Richtext Control: Cut text
Message
From
24/01/2006 13:18:44
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Novell 4.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01089702
Message ID:
01089833
Views:
24
>_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
Previous
Reply
Map
View

Click here to load this message in the networking platform