I forgot to mention I am using Windows 2000. Thanks for your comments. I tried _CLIPTEXT but that's no good because it only places a character string onto the clipboard. It doesn't copy formatted text. The character string, when pasted into another application such as "Word" reappears as a character string and not an RTF document. Use the clipboard viewer to see the difference. The clipboard viewer doesn't fully interpret RTF, but if you can't see the RTF control characters in the viewer then you are winning. If you can see them, a subsequent paste won't convert the string back to formatted RTF.
Main Topics
Browse All Topics





by: cbasozPosted on 2004-02-19 at 05:05:43ID: 10401943
Phil,
t
F
I'm not sure I understood.
Do you want to use Ctrl+C to copy the selected text ?
-Enable AutoverbMenu from RTF properties (rightclick on RTF in design mode)
-You can then select text and press Ctrl+C
Do you want to copy the selected or all text of RTF from a command button click ?
If so :
* Button click copying only selected text to clipboard
_cliptext = thisform.RTFControl.SelTex
* Button click copying all text to clipboard
_cliptext = thisform.RTFControl.Text
If you want to copy text with RTF codes :
* Button click copying only selected text to clipboard
_cliptext = thisform.RTFControl.SelRTF
* Button click copying all text to clipboard
_cliptext = thisform.RTFControl.TextRT