Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Andrew Brown
|
Sep 1, 2007 - 4:29 AM
|
I would like to be able to drag and drop files on to a button on the ribbon. I set AllowDrop=true on the button and handled the DragXXXX events but the events were never called. Does the ribbon support drag and drop?
|
|
Technical Support
|
Sep 3, 2007 - 10:03 AM
|
In the current version, you cannot receive DragXXX events directly from a button. We will probably add this functionality in the next version. As a workaround, you can do the following:
1) Set the AllowDrop property of the ribbon to true 2) In the DragXXX events, you receive the current position of the mouse pointer. Use the PointToClient() method of your button in order to determine if the mouse is over the button. If true, perform your drag and drop actions. This should work.
|
|