OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: stephan_35 on August 17, 2009, 03:38:19 AM

Title: [SOLVED]DragnDropFromControl move and copy with shift & Ctrl key in treecontrol.
Post by: stephan_35 on August 17, 2009, 03:38:19 AM
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  ;)
Title: Re: DragnDropFromControl move and copy with shift & Ctrl key in treecontrol.
Post by: Fred Tomke on August 17, 2009, 07:09:41 AM
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
Title: Re: DragnDropFromControl move and copy with shift & Ctrl key in treecontrol.
Post by: stephan_35 on August 17, 2009, 12:46:14 PM
Quote from: Fred Tomke on August 17, 2009, 07:09:41 AM
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.
      
Title: Re: DragnDropFromControl move and copy with shift & Ctrl key in treecontrol.
Post by: stephan_35 on August 17, 2009, 01:03:09 PM
Hi,

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

Is that correct ???

Thanks
Title: Re: DragnDropFromControl move and copy with shift & Ctrl key in treecontrol.
Post by: owenwengerd on August 17, 2009, 01:21:53 PM
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.
Title: Re: DragnDropFromControl move and copy with shift & Ctrl key in treecontrol.
Post by: stephan_35 on August 17, 2009, 01:43:23 PM
Quote from: owenwengerd on August 17, 2009, 01:21:53 PM
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