-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TDropFileTarget.MultiTarget fails in some cases #67
Comments
What type are the controls? Do you have an example? |
These are the controls: DropFileTargetMulti.Register(dxPDFViewerMain); // TdxPdfViewer |
Also, I need to check the file in OnDragOver;
But the OnDragOver event handler is not executed! |
An exception is raised in the registration fails:
What you're likely experiencing is that the control handle is being destroyed and recreated after you have registered the control as a drop target. For example, this happens if you change the FormStyle of a form. The drop target component works around this via the If
Try running the TargetAnalyzer. It will show you how your application is interacting with the drop source. |
I use the TDropFileTarget 5.82 component in Delphi 11.3. I have activated the MultiTarget property and registered six different controls as Target in the form's OnCreate event handler. The Register action doesn't always work for all registered controls, as sometimes, randomly, one of the registered controls does not work as a drop target. Therefore, feedback should be given on whether the Register action fails on a control. The Register procedure should be a function and give back the Register result. Or a parameter that holds the registration success?
Also, sometimes the OnDragOver event handler is not called on some registered controls.
The text was updated successfully, but these errors were encountered: