Recent

Author Topic: [SOLVED] Drag&Drop Windows 8/Server 2012  (Read 3836 times)

MementoMojito

  • Jr. Member
  • **
  • Posts: 63
[SOLVED] Drag&Drop Windows 8/Server 2012
« on: June 08, 2015, 06:53:37 pm »
Hi everyone,

I have allowed drag&drop on my main form, and it's working totally fine on Debian (KDE and Gnome) and Windows 7, however on Windows 8 and Server 2012 it just seems that the procedure TForm1.FormDropFiles() is never called. In order to test I have changed mine as follow:

Code: [Select]
procedure TForm1.FormDropFiles(Sender: TObject; const FileNames: array of String
 );
begin
 showmessage(FileNames[0]);
end;

And I just can't get anything on Win 8. Anyone ever experienced such a problem?
Thanks for the help!
« Last Edit: June 08, 2015, 09:40:17 pm by MementoMojito »

MementoMojito

  • Jr. Member
  • **
  • Posts: 63
Re: Drag&Drop Windows 8/Server 2012
« Reply #1 on: June 08, 2015, 09:39:59 pm »
Ok, answering to myself as it was just some compatibility problems.
However if anyone come across the same issue:

Right click on the exe > Troubleshoot compatibility and then Try recommended settings.

It fixed it my case.

lainz

  • Hero Member
  • *****
  • Posts: 4743
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: [SOLVED] Drag&Drop Windows 8/Server 2012
« Reply #2 on: June 08, 2015, 10:23:30 pm »
Yes, It now works for you only.

If the case is an app for third party you must warn they to do the same as you!

MementoMojito

  • Jr. Member
  • **
  • Posts: 63
Re: [SOLVED] Drag&Drop Windows 8/Server 2012
« Reply #3 on: June 08, 2015, 11:01:07 pm »
Thanks for the reply, I'm aware it's not portable and need to be applied for any other users, another bliss from Windows 8...
But I'm guessing there is no other ways as it seems to be down to env factors?

lainz

  • Hero Member
  • *****
  • Posts: 4743
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: [SOLVED] Drag&Drop Windows 8/Server 2012
« Reply #4 on: June 09, 2015, 12:15:29 am »
If you find what exactly the fix does maybe you can apply it by yourself, with an installer for example.

If I'm not wrong the compatibility thing is stored in registry
https://www.google.com/search?#q=windows+compatibility+settings+registry

MementoMojito

  • Jr. Member
  • **
  • Posts: 63
Re: [SOLVED] Drag&Drop Windows 8/Server 2012
« Reply #5 on: June 09, 2015, 12:51:10 am »
Thank so much for the hint, I wasn't expecting anything as good.
I will dig it and if I can find anything working I will post what I did here.
Thanks again!

Timewarp

  • Full Member
  • ***
  • Posts: 144
Re: [SOLVED] Drag&Drop Windows 8/Server 2012
« Reply #6 on: June 09, 2015, 08:27:32 am »

 

TinyPortal © 2005-2018