Share via


OLEDragMode Property

Specifies how a drag operation is initiated. Available at design time and run time.

Object.OLEDragMode[= nValue]

Return Value

  • nValue
    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.

    1

    Automatic

    Visual FoxPro allows automatically initiates a drag operation when you attempt to drag data.

Remarks

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

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.

See Also

Reference

DragMode Property

OLE Drag-and-Drop

OLEDrag Method

OLEStartDrag Event

Other Resources

Properties (Visual FoxPro)