EditObject action MotifStartDrag controls the drag operation. It is connected using the following translation:
<Btn2Down>: MotifStartDrag()
There is no specific action defined for dropping objects. The drop operation is activated automatically on a button release.
Drag and Drop operations can be disabled by setting EditObject resources XmNallowDrag and XmNallowDrop to False. Also, callback XmNdragDropCallback is invoked on both drag and drop operations and can be used to selectively enable or disable either drag or drop operations.
| Key Sequence | Drag Source | Drop Site | Description |
|---|---|---|---|
| <Btn2Down>: | Chart object | EditObject | Moves the chart to the specified location. |
| Ctrl <Btn2Down>: | Chart object | EditObject | Copies the chart to the specified location. |
| Ctrl Shift <Btn2Down> | Chart object | EditObject | Copies the chart to the specified location and makes a link between the two. |
| <Btn2Down> | Chart object | Chart object | Moves the data from the source chart to the destination chart. |
| Ctrl <Btn2Down> | Chart object | Chart object | Copies the data from the source chart object into the destination chart object. |
| Ctrl Shift <Btn2Down> | Chart object | Chart object | Copies the data from the source data object into the destination chart object. Establish a link between the two charts. |
| <Btn2Down> | Chart object | EditTable | The data contained in the chart is moved to the table at the location specified by the pointer. |
| Ctrl <Btn2Down> | Chart object | EditTable | The data contained in the chart is copied to the table at the location specified by the pointer. |
| Ctrl Shift <Btn2Down> | Chart object | EditTable | The data contained in the chart is copied to the table at the location specified by the pointer. A link is established between the chart and the table. |
| <Btn2Down> | Motif Text | EditObject | Creates a text object containing the text. |
| <Btn2Down> | Motif Text | Chart object | Set the Chart title to be the string contained in the text widget. |
| <Btn2Down> | Motif Text | EditTable | Content of the Text widget is copied into the specified table cell. |
| <Btn2Down> | EditTable | Chart object | The data contained in the selected cells is copied into the chart object (move option is disabled for the EditTable widget). |
| Ctrl <Btn2Down> | EditTable | Chart object | The data contained in the selected cells is copied into the chart object. |
| Ctrl Shift <Btn2Down> | EditTable | Chart object | The data contained in the selected cells is copied into the chart object and a link is made between the table and the chart. |
| <Btn2Down> | Graphic object | EditObject | Moves the object to the location specified by the pointer. |
| Ctrl <Btn2Down> | Graphic object | EditObject | Copies the object to the location specified by the pointer. |