Specifies how a drag operation is initiated. Available at design time and run time.
Specifies how the control or object handles OLE drag operations. The following table lists the settings for nValue.
Setting Description 0 Manual (Default).
Visual FoxPro does not initiate the OLE drag operation when you attempt to drag data. You must call the OLEDrag method to begin the drag operation.
Setting OLEDragMode to 0 provides backward compatibility (no OLE drag support) for existing applications if you do not include additional drag operation coding.
Visual FoxPro allows automatically initiates a drag operation when you attempt to drag data.
OLEDragMode is a drag source property. If the DragMode property for a control or object is set to 1 – Automatic, the control or object cannot act as an OLE drag source. This provides backward compatibility for previous drag-and-drop support in earlier versions of Visual FoxPro.
Note that OLEDragMode property is read-only for the Grid control.
Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Form | Grid | Image | Label | Line | ListBox | OptionButton | OptionGroup | Page | PageFrame | Shape | Spinner | TextBox | ToolBar