ST3VO
asked on
Disable Drag and Drop
Hi all,
Is there a way to disable drag and drop on a component please?
thx
S
Is there a way to disable drag and drop on a component please?
thx
S
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sorry sorry. may I know which component are you working on.
ASKER
Actually, I have checked the events and there is
no option. The is why I'm asking :-/
no option. The is why I'm asking :-/
Hi,
there is a great function in Delphi that let's you build this string with the standard ADO user interface. Use the code below:
Uses AdoConEd;
procedure TForm1.Button1Click(Sender : TObject);
begin
if EditConnectionString(ADOCo nnection1) then
ShowMessage(ADOConnection1 .Connectio nString);
end;
there is a great function in Delphi that let's you build this string with the standard ADO user interface. Use the code below:
Uses AdoConEd;
procedure TForm1.Button1Click(Sender
begin
if EditConnectionString(ADOCo
ShowMessage(ADOConnection1
end;
ASKER
Sorry but what does ADO connection got to do with Drag n Drop ???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ok. Thats why I asked which component and on to which component you are dragging and dropping. or is it a third party component, you just mention clearly. so that experts can help you properly.
Ferruccio68 has added one good solution. Some component has as these as property or implemented through some API. Follow the component features in Help files also.
Ferruccio68 has added one good solution. Some component has as these as property or implemented through some API. Follow the component features in Help files also.
Sorry, wrong post on the wrong thread...
ASKER
No probs! Anyway...
What I need to do is the following:
Using TEmbeddedWB or TWebBrowser or any other (they all using IE5 as editor) when you put them in Edit Mode ...
You can normally drag and drop etc...I besically need to stop this from happening...but I don't want to mess the user's IE settings.
Any ideas please?
thx
What I need to do is the following:
Using TEmbeddedWB or TWebBrowser or any other (they all using IE5 as editor) when you put them in Edit Mode ...
You can normally drag and drop etc...I besically need to stop this from happening...but I don't want to mess the user's IE settings.
Any ideas please?
thx
Hi,
now the post is for the correct thread. To disable droping on a TWebBrowser set the RegisterAsDropTarget property to False.
now the post is for the correct thread. To disable droping on a TWebBrowser set the RegisterAsDropTarget property to False.
ASKER
I'm actually using a third party component for it and it doesn't have a RegisterAsDropTarget property.
The component is based heavily on MSHTML. I really thought it was a matter of disabling drag n drop in general on that component.
The component has 2 events:
OnDragDrop and OnDragOver ... does this help?
thx
The component is based heavily on MSHTML. I really thought it was a matter of disabling drag n drop in general on that component.
The component has 2 events:
OnDragDrop and OnDragOver ... does this help?
thx
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Im not using TEmbeddedWB. Im using: ProfDhtmlEdit component. Tried to get support but no luck, so I can only ask here :o/
Hi, what you wan't cannot be done with this control as it is a custom component and has no drag/drop specific properties or events. I 've downloaded the online manual of the comp and looked it up. I don't know how this can be done as i don't have the source of the ProfDhtmlEdit comp. One other problem is that it heavily relies on IE, so maybe this is a function controled by IE and not by the comp it self...
ASKER
Hi twinsoft...thanks for your time.
Yes, it seems to rely on IE BUT I have tried making changes to IE in registry and it doesn't work.
I've been trying to find some document online that can tell me what things can be modified on IE via registry or something but no luck yet :o/
Yes, it seems to rely on IE BUT I have tried making changes to IE in registry and it doesn't work.
I've been trying to find some document online that can tell me what things can be modified on IE via registry or something but no luck yet :o/
ASKER
thanks all for your time.