Commands of this namespace enable user to define a BWidget or a Tk widget as a drop site. A drop site is composed of the type of object that can be dropped and associated operation, a command called when drop occurs, and a command when an object is dragged over the widget. A drop site must have at least one type of acceptable object and a drop command.
-dropenabled | Specifies wether or not drop is active (initialized to 0) |
Event | Old status | Action | New status |
<Enter> | - | if DropSite has dropovercmd, call it with enter | result of dropovercmd |
else | 1 | ||
<Motion> | 0 or 1 | unchanged | |
2 or 3 | call dropovercmd with motion | result of dropovercmd | |
<Leave> | 0 or 1 | - | |
2 or 3 | call dropovercmd with leave | - | |
<Drop> | 0 | call dragendcmd of drag source | - |
1 | call dropcmd and call dragendcmd of drag source | ||
2 | call dropovercmd with leave and call dragendcmd of drag source | ||
3 | call dropcmd and call dragendcmd of drag source |