- This topic has 2 replies, 2 voices, and was last updated 2021-12-21 at 4:31 am by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Home › Forums › DropMaster › TDMTextTarget on a frame
Tagged: Dropmaster, Frame, TDMTextTarget
Hi,
Currenty I’am using the TDMTextTarget components to facilitate drag and dropping of documents, outlook e-mails and attachments onto an panel.
This is working correctly when the components are on the form.
However when I use a frame on which the components are placed and implement the frame onto multiple forms; the it doesn’t allow files to be dropped onto the panel.
The cursor doesn’t change to indicate it allows dropping.
Can you help us further?
If the acceptor control is on a frame, or a splitter, or if it’s e.g. a TListView and you change the view style at runtime, design-time hook-up of the drag and drop can fail at runtime. This kind of operation changes the window handle of the acceptor control which stops the drag and drop working (Windows drag and drop registration is by window handle). In that kind of situation, you just do:
DMTextTarget1.AcceptorControl := nil; // needed to disconnect the drag and drop DMTextTarget1.AcceptorControl := theOriginalAcceptorControl; // reconnect the drag and drop.
You can typically do this in the FormCreate event handler.
Hope this helps.
Thanks for the help. This fixed the problem.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)