Board index » delphi » Drag bmp from desktop to my app
GB Blanchard
![]() Delphi Developer |
Thu, 25 Aug 2005 19:27:05 GMT
|
GB Blanchard
![]() Delphi Developer |
Thu, 25 Aug 2005 19:27:05 GMT
Drag bmp from desktop to my app
Have any of you used Johnson and Melander's Drag and Drop
component? Following their source code, I can drag and drop bmp's within my own app but can't figure out how to drop desktop icons into it. I imagine that what I need to know isn't specific to this component, but this is new territory for me and I'd appreciate some pointers. Google isn't helping me this time. == |
J Fren
![]() Delphi Developer |
Thu, 25 Aug 2005 20:30:52 GMT
Re:Drag bmp from desktop to my appOn Sun, 09 Mar 2003 12:27:05 +0100, GB Blanchard Quote<1...@1122noexiste.net> wrote: However from what I can see (and I may be wrong) Delphi's built in However a little poking around in the Win32 Programmer's Reference Basically click the button to invoke DragAcceptFiles() then respond to Dragged file names will show up in the Form's Caption unit Unit1; interface uses type var implementation {$R *.DFM} procedure TForm1.OnDropFiles(var Message: TWMDropFiles); end. |
GB Blanchar
![]() Delphi Developer |
Thu, 25 Aug 2005 21:49:31 GMT
Re:Drag bmp from desktop to my appQuoteOn Sun, 09 Mar 2003 12:30:52 GMT, J French wrote: generously posted here. But the problem is getting the desktop BMPs or icons to drop onto a TImage in my app. It's becoming frustrating because I see lots of applications doing it, by I can't find any information on how to do it myself. Since this is new territory for me, I probably not finding any information because I don't know what keywords to use in my search, though believe me, I've tried. == |
J Fren
![]() Delphi Developer |
Thu, 25 Aug 2005 22:53:24 GMT
Re:Drag bmp from desktop to my appOn Sun, 09 Mar 2003 14:49:31 +0100, GB Blanchard Quote<1...@1122noexiste.net> wrote: image. I suspect that they are getting the name of the bitmap and loading it They can only do things that are 'supported' by the Windows Are you trying to get the Icon of the .LNK file or App Try adding this into your code procedure TForm1.OnDropFiles(var Message: TWMDropFiles); Message.Result := 0; |
GB Blanchar
![]() Delphi Developer |
Fri, 26 Aug 2005 03:50:14 GMT
Re:Drag bmp from desktop to my appQuoteOn Sun, 09 Mar 2003 14:53:24 GMT, J French wrote: me a starting point to get in and figure things out. Thank you very much, J French! == |
1. Drag and drop - from app to desktop
2. Drag n Drop Files To Desktop/Apps (Delphi 3)
3. Dragging From App To Desktop
4. Drag and drop between desktop/explorer and Delphi 3.0 app
6. OLE drag-drop -- dropping on app icons to start app problem
8. Desktop bmp changing example