Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Put text into clipboard to be fixed font when pasted.
Message
De
13/06/2008 20:13:46
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
13/06/2008 17:25:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01243628
Message ID:
01324031
Vues:
44
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform