Pasting images from clipboard to file
Quote:
> - - - - - - - - - -
> Doug,
> > I've never done it, but check the examples and or the book. In there
> > they show you how to retrieve directly from the clipboard.
> > It looks simple, something like GETCLIPBOARD()....
> One item not covered in the manual is that the Clarion Clipboard
> functions only handle TEXT. I have complained about this many times
> but . . . . .
> I wish AT LEAST they would correct the manual to reflect the loss of
> functionality.
Actually, I think GETCLIPBOARD() will get whatever you want from the
clipboard, but the parameter where you pass the format you want is not
documented.
Try passing the format you want to retrieve as a parameter. Let's see, a
bitmap is CF_BITMAP, now that's 2:
CF_TEXT equate(1)
CF_BITMAP equate(2)
CF_METAFILEPICT equate(3)
CF_SYLK equate(4)
CF_DIF equate(5)
CF_TIFF equate(6)
CF_OEMTEXT equate(7)
CF_DIB equate(8)
CF_PALETTE equate(9)
CF_PENDATA equate(10)
CF_RIFF equate(11)
CF_WAVE equate(12)
CF_OWNERDISPLAY equate(80h)
CF_DSPTEXT equate(81h)
CF_DSPBITMAP equate(82h)
CF_DSPMETAFILEPICT equate(83h)
CF_PRIVATEFIRST equate(200h)
CF_PRIVATELAST equate(2FFh)
CF_GDIOBJFIRST equate(300h)
CF_GDIOBJLAST equate(3FFh)
--
Tom Ruby
--------------------------------------------------------------------
http://www.netins.net/showcase/tomruby/
Find resources mentioned in this newsgroup:
http://www.netins.net/showcase/tomruby/clarion/