Página 1 de 1
CefBrowser
Publicado: Mar Mar 10, 2015 8:55 am
por Timm
Hi!
I would like to build a file browser from which I can drag and drop files into a web page loaded in a CefBrowser control.
I don´t know how to make the drag and drop functionality. Does any have experiences with that?
Will the CefBrowser control of the upcoming Xailer update support the latest CEF version?
Best regards, Timm.
CefBrowser
Publicado: Mar Mar 10, 2015 10:01 am
por ignacio
Hello,
METHOD FormDropFiles( oSender, aFiles, aPoint ) CLASS TForm1
::oCefBrowser1:Navigate( "file://" + aFiles[1] )
RETURN Nil
About the upgrade to newest CEF, we are working on that, but for future developments. The newest CEF browser is a lot bigger than the actual version and we believe is not worth the change, but probably we will change in the near future.
Regards,
CefBrowser
Publicado: Mar Mar 10, 2015 11:08 am
por Timm
Ignacio,
::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will display the file in the browser but I want that the website receives the dragged filenames like in drag&drop operation among applications.
In my case local image files should be read by a php script.
Best regards, Timm.
CefBrowser
Publicado: Mar Mar 10, 2015 11:26 am
por ignacio
Timm escribió el mar, 10 marzo 2015 11:08Ignacio,
::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will display the file in the browser but I want that the website receives the dragged filenames like in drag&drop operation among applications.
In my case local image files should be read by a php script.
Best regards, Timm.
Sorry. Instead of Navigate(...) do what ever you want. I can't see the problem. The event OnDropFiles you can use on any manner, it just receives an array of files. That's all.
Regards,
CefBrowser
Publicado: Mar Mar 10, 2015 11:30 am
por jfgimenez
Timm,
> ::oCefBrowser1:Navigate( "file://" + aFiles[1] ) will
> display the file in the browser but I want that the website
> receives the dragged filenames like in drag&drop operation
> among applications.
> In my case local image files should be read by a php
> script.
That feature must be implemented by using AJAX in your own web page.
Try navigating to
http://ge.tt from the CEF browser sample and you can
see that it support dragging files on it. You don't need to implement it
in Xailer at all.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
CefBrowser
Publicado: Mar Mar 10, 2015 12:18 pm
por Timm
Ignacio,
our web page is already able to receive dragged files. I can drag and drop files from the Windows Explorer for example.
I want to build an application with a CefBrowser control on the left side and an image browser on the right side.
The goal is to drag the image filenames from the right into the CefBrowser control.
Best regards, Timm.
CefBrowser
Publicado: Mar Mar 10, 2015 12:43 pm
por jfgimenez
Timm,
> our web page is already able to receive dragged files. I can
> drag and drop files from the Windows Explorer for example.
>
> I want to build an application with a CefBrowser control on
> the left side and an image browser on the right side.
> The goal is to drag the image filenames from the right into
> the CefBrowser control.
Well, try to drag files directly from the windows explorer onto the CEF
browser. I'm pretty sure it works.
The other issue is to drag items from the "image browser" control, like
if they were files. I'm afraid it's not so easy. To drag items from a
control as filenames, involves writing low level COM interfaces that
handle windows explorer, and it's a difficult task. BTW, what control
are you using for "image browser"?
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info