Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making a .bmp from the clipboard
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00090562
Message ID:
00090928
Vues:
25
>>>Come on... somebody has done this!!!! Please tell me you have!!!
>>>
>>>I don't want anything to be seen by the user, so copying the image to a general field would be kind of out of the question.
>>>
>>>
>>>Wayne
>>
>>You can copy clipboard contents to cursor general field completely on backgroung (programmatically).
>
>Do you have acy code examples?
>
>Wayne

This is just a sample:
DECLARE keybd_event IN Win32API ;
SHORT bVk, SHORT bScan, INTEGER dwFlags, INTEGER deExtraInfo
=keybd_event(44, 0, 0, 0)
clear dlls
*** it's in clipboard now
create cursor tmp (bmp G)
append blank
with thisform.grid1 && some absolutely transparent grid
.recordsource="tmp"
.columncount=1
.column1.text1.setfocus
endwith
define window bmp at 1000,1 size 1,1 && some window on background
modify general bmp nowait window bmp
*** paste and save
keyboard '{CTRL+V}'
keyboard '{CTRL+W}'
release window bmp
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform