[SOLVED]DragnDropFromControl move and copy with shift & Ctrl key in treecontrol.

Started by stephan_35 · 2009-08-17 10:38 UTC · 5 replies · SMF topic #877

Hello !

I mess something or control key (shift & ctrl) does not take effect on process ?

With 5.1.1.7, node was moved or copied.

I wonder if it is possible also to enable or disable copy (or move) depending of destinate node .

thanks again  ;)
Hi stephan,

if you don't activate the events for OnDragDropFromControl and so on it should as you desires. Did I understand correctly that it doesn't work so?

Fred
author=Fred Tomke link=topic=877.msg4357#msg4357 date=1250518181 wrote:
Did I understand correctly that it doesn't work so?
Fred



Hello,

Sorry do not express myself properly.

So the event DragnDropFromControl no longer works as before: only the symbol "+" appears,
- Function move (with the shift key) is abandoned?
- Function copy (with ctrl) is abandoned?

Prior to version 5.1.1.7, when copying or moving the node was automatically copied or moved without any control on our part, it's time for us to develop the copy or move the node (which is correct! ).

It may be that correction that has inhibited other function?

My other request (less important) concerns the concept of permission or prohibition to copy or move a node:
Take the example of a tree on a hard drive, I want to allow moving and copying of file and directory node in the node directory only.
A file can not be moved to a file!
To do so would create an "event" that controls the destination with a control that changes the icon "forbidden" or "authorized".

Best regards.
Hi,

Found that using "DragnDropBegin" event , inhibited  Shift & Ctrl key of DragnDropFromControl event ???

Is that correct ???

Thanks
Yes, that is by design. The control uses built-in behavior only when no events are defined. To have the behavior you desire would mean adding additional infrastructure to the event handling system. This is certainly possible, but it would require significant changes.
author=owenwengerd link=topic=877.msg4363#msg4363 date=1250540513 wrote:
Yes, that is by design. The control uses built-in behavior only when no events are defined. To have the behavior you desire would mean adding additional infrastructure to the event handling system. This is certainly possible, but it would require significant changes.



I imagine the workload that would be!  ;D

In the immediate future, I stop the command if the destination is not correct, although this is not very ergonomic it will be a first solution.

Best regards

thanks