After a long quest, at last, I finally found a clue on how to use it
This is a Class Constant that have some explanation here.
Some other explanation exists here, an important line is:
[quote]The Action parameter specifies the drag action, which is typically done by holding down a modifier key (Shift, Alt, Option, Command, etc.) while doing the drag. It can take the following class constants of the DragItem class[/quote].
The most important part of teh sentence above is:
which is typically done by holding down a modifier key (Shift, Alt, Option, Command, etc.) while doing the drag
In fact, the only modifier that returns some value that is not 0 (DragItem.DragActionDefault
) is the Option Key (in my MacBook keyboard).
All other modifier keys returns 0 or do nothing at all:
Command
: select or deselect a Row; cannot do anything unless pressed during the drag, but action = 0 in that case.
Shift
: Add or remove contiguous Rows; cannot do anything unless pressed during the drag, but action = 0 in that case.
alt
Same as the option key when running OS X. Have to be tested on Windows for more details.
Shift-Lock
Also returns 0 (zero).
So, as far as I can see, beside Action Default and Action Copy, the two other Constants cannot be used: Action Move and Action Link.
And for the meaning of the actions, I only can suppose that:
Action Default The default value (whatever it can be; I feel for ActionMove)
Action Copy The developer have to add the code to copy the selected Rows (teh dragged Rows)
Action Move The current default mode: Move the selected rows to the new location (to be computed because DropObject does not have x,y)
Action Link I can only dream about what this can be used for.
Origin of the action parameter
[code]Release Notes (2006r2):
[New] [All] Drag 'n Drop:
Added an additional parameter (Action As Integer) to the DropObject, DragEnter, DragExit and DragOver events. This parameter specifies the drag action, which can take on the value of any one of the following:
DragItem.DragActionDefault = 0
DragItem.DragActionCopy = 1
DragItem.DragActionMove = 2
DragItem.DragActionLink = 3[/code]
That is all I found in that subject. Ideas ?