Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a .bmp from the clipboard
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00090562
Message ID:
00090928
Views:
24
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform