Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining changes to the Windows clipboard
Message
De
14/01/2002 09:07:00
Dennis Little
Ist Choice Travel
Glos, Royaume Uni
 
 
À
14/01/2002 07:37:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00604216
Message ID:
00604257
Vues:
27
Since starting the thread, the following seems to work

In the Deactivate() event put:-

lcTestData = [f^3!gy&ip*2]

In the Activate event put:-

IF UPPE(ALLT(lcTestData)) # UPPE(ALLT(_CLIPTEXT))
lClipBoardChanged = .T.
ENDI

What I was forgetting was that EMPTY(_CLIPTEXT) = .T., if other than text was copied to the clipboard.

By providing lcTestData with a string value unlikely to be pasted from any other application, it tests not only text changes but also if a graphic was copied to the clipboard.

Thanks for your help, Hilmar

Dennis
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform