Link to home
Start Free TrialLog in
Avatar of ST3VO
ST3VOFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Disable Drag and Drop

Hi all,

Is there a way to disable drag and drop on a component please?

thx

S
SOLUTION
Avatar of Pramod Bugudai
Pramod Bugudai
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
sorry sorry. may I know which component are you working on.
Avatar of ST3VO

ASKER

Actually, I have checked the events and there is
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(ADOConnection1) then
  ShowMessage(ADOConnection1.ConnectionString);
end;
Avatar of ST3VO

ASKER

Sorry but what does ADO connection got to do with Drag n Drop ???
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Sorry, wrong post on the wrong thread...
Avatar of ST3VO

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
Hi,
   now the post is for the correct thread. To disable droping on a TWebBrowser set the RegisterAsDropTarget property to False.
Avatar of ST3VO

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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ST3VO

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...
Avatar of ST3VO

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/
Avatar of ST3VO

ASKER

thanks all for your time.