Reading the clipboard
This piece of code, taken from a help file, shows how many "formats" are on
the clipboard and what they are:
ShowMessage ('No of clipboard formats: ' + IntToStr
(ClipBoard.FormatCount));
for i := 0 to ClipBoard.FormatCount-1 do
ShowMessage (IntToStr(ClipBoard.Formats[i]))
end;
The trouble is that the values returned in the ClipBoard.Formats array are
just integers. The meanings of some of them can be found in the Delphi 5
source (windows.pas), e.g. 1 = CF_TEXT, 7 = CF_OEMTEXT, etc, but some of the
values I am getting are in the range 50000-60000 and I can find no
explanation of them. (I am working with a clipboard containing material
copied from within Word 2000, and I am using Win95.)
Thanks for any ideas,
Ciarán Ó Duibhín.
|