Bonjour Michel,
of course LC supports Drag'n'Drop!
However PDF files can only be displayed in a Browser object out of the box on a Mac and on Windows if the Acrobat Reader web-plug-in has been installed.
To your questions:
1. See above, you cannot extract the text and/or images from a PDF file in Livecode and display it in a field object.
Example of Drag'n'Drop of file(s):
To "load" a dragged TXT document into a field, you need this in the script of that field:
Code: Select all
on dragenter
## Let this field accepty a Draga and Drop action
set the dragaction to "copy"
end dragenter
on dragdrop
## we only need the first dragged file
put line 1 of the dragdata["files"] into tFileName
## We only allow TXT files:
if tFileName ends with ".txt" then
## We have a TXT file and load it into this field
set the text of me to url("file:" & tFileName)
end if
end dragdrop
2. This is also possible but requires the use of custpom properties and behaviours, although this might be possible without a behaviour. Ready for this?
3. Yes, what about PNG and JPGs?
LC can display these in an image object, so what is your exact question here?
Hint:
To learn the basics of Livecode, I recommend going through these stacks:
http://www.hyperactivesw.com/revscriptc ... ences.html
Best
Klaus