Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a .bmp from the clipboard
Message
From
09/04/1998 17:02:50
 
 
To
09/04/1998 16:50:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00090562
Message ID:
00090931
Views:
21
>>>>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

Sorry, i typed in hurry and automatically retyped too much:). Please, disregard grid-related part of this code. Other things should work Ok.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform