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:32:41
 
 
À
13/06/2008 20:13:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
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:
01324034
Vues:
31
Dragan --

This object can't get the focus -- it's in a popup form which is a replacement for ToolTipText, so it disappears once the mouse moves away from the object.

As for foxtools.fll ... unfortunately, have never used it, don't know how to use it, nor do I know what I would use it for (my knowledge of the extent of my ignorance grows with each day).

sigh


>>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).
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform