Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put text into clipboard to be fixed font when pasted.
Message
From
13/06/2008 20:13:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/06/2008 17:25:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01243628
Message ID:
01324031
Views:
43
>Dragan --
>
>My original reason for this thread was to take some text that was displayed in an edit box in fixed font and be able to paste into elsewhere (Word, for instance) where the fixed font would be maintained.
>
>Now, using the RTF control, I can see how to get the value -- but still don't know how to put into the clipboard. _cliptext is obviously just the text itself ...
>
>(BTW, the user can see this text, but the object can't ever get the focus, so the user can't simply do Ctrl+A then Ctrl+C themselves.)

Why not let them gain the focus, just keep it readonly. Also, make sure its rightclick menu isn't disabled (there's a property for that, and I think its name is so counterintuitive I can't remember it :).

The other way around would be to use some of the _ed* functions (in foxtools.fll) or clipboard API, where you could put .textRTF into the clipboard and tell the system it's in RTF format (let's say, do that when there's text there and your app is losing focus, or something like that - some event catching may be needed).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform