Share via


OLEDropMode Property

Specifies how a drop target manages OLE drop operations. Available at design time and run time.

Object.OLEDropMode[= nValue]

Property Values

  • nValue
    Specifies how the control or object handles OLE drop operations. The following table lists the settings for nValue.
    nValue Foxpro.h constant Description
    0 DROP_DISABLED Disabled (Default).

    Data cannot be dropped onto the control or object, and no drop target events occur. The No Drop mouse pointer is displayed when the mouse pointer is positioned over the control or object.

    Setting OLEDropMode to 0 provides backward compatibility (no OLE drop support) for existing applications.

    1 DROP_ENABLED Enabled.

    Visual FoxPro allows the dropping of data onto the control or object, and drop target events occur.

    2 DROP_PASSTOCONTAINER Pass to Container.

    The control or object behaves as if it is disabled for OLE drop operations, and the data is dropped on the container for the control or object.

    The container's OLEDropMode property must be set to 1 or 2 to accept the data. The No Drop mouse pointer is displayed if the container's OLEDropMode property is set to 0.

Remarks

OLEDropMode is a drop target property. If the DropMode property for a control or object is set to 0 – Disabled, the control or object cannot act as an OLE drop source. This provides backward compatibility for previous drag-and-drop support in earlier versions of Visual FoxPro.

If the Enabled property of a control or object is set to false (.F.), you cannot drop data on the control or object. For drop operations, the No Drop mouse pointer is displayed when the Enabled property of a control or object is set to false (.F.).

See Also

Enabled Property | OLE Drag-and-Drop Overview

Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Form | Grid | Image | Label | Line | ListBox | OptionButton | OptionGroup | Page | PageFrame | ProjectHook Object | Shape | Spinner | TextBox | ToolBar