Does anyone know how to disable Alt key from Delphi3 program?  I have an
application program that calls a DLL to do the product search.  After the
product search pops up, if user hits Alt+x (for Exit), the error message
'Access Violation' came up.

Thank you for your time.
Fair

-----Original Message-----
From: Ross Levis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 13, 2005 7:33 PM
To: Borland's Delphi Discussion List
Subject: Re: Darg?Drop Question


I use the Explorer Drop v.1.1 component you can find on this page:
http://www.torry.net/pages.php?id=233

Ross.

----- Original Message ----- 
From: "John Barrat" <[EMAIL PROTECTED]>
To: <delphi@elists.org>
Sent: Wednesday, December 14, 2005 1:37 AM
Subject: Darg?Drop Question


I'm dragging and dropping files from Explorer to my Application using 
the
ShellAPI unit.

On my form I have a listbox to which I want to drag files.



In form.create I add

DragAcceptFiles(lstFiles.Handles, True);  //where lstFiles is my list 
box.



This appears to work - i.e. cursor changes to Accept drop but the
WM_DROPFILES message is not received.



If I use the form's handle it works but of course the Accept Drop Cursor
appears anywhere on the form.



The form is not the main form of the application and is brought up as a
modal dialog.  I have the same code running successfully with a listbox
control on the Main form in another application. Could this be the
difference?



Also, how do I determine what files are attempting to be dropped? 
Ideally I
would like to test what was being dropped while it was being dragged and
only show the Accept Drop mouse cursor when files of the correct type 
were
being dropped.



John Barrat 

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi

Reply via email to