Article ID: 184386
Article Last Modified on 8/13/1999
LPARAMETERS oDataObject,nEffect,nButton,nShift,nXCoord,nYCoord,nState
IF nState=0
IF oDataObject.GetFormat('VFP Source Object')
This.OLEDropHasData=1
This.OLEDropEffects=2
ENDIF
ENDIF
LPARAMETERS oDataObject,nEffect,nButton,nShift,nXCoord,nYCoord
NODEFAULT
LOCAL oSource
IF oDataObject.GetFormat('VFP Source Object')
oSource=oDataObject.GetData('VFP Source Object')
oSource.Left=nXCoord
oSource.Top=nYCoord
ENDIF
OLEDragMode = 1 - Automatic
This.OLEDropEffects=1 Copy Here and Cancel menu
This.OLEDropEffects=2 Move Here and Cancel menu
This.OLEDropEffects=3 Copy Here, Move Here and Cancel menu
This.OLEDropEffects=4 Link Here and Cancel menu
This.OLEDropEffects=6 Move Here, Link Here and Cancel menu
This.OLEDropEffects=7 Move Here, Copy Here, Link Here and
Cancel menu
OLEDropEffects of 1 (copy), 2 (move) and 4 (link) along with 0 (none)
are the base drop effect values. The base values can be added together
to produce combinations - 3, 6 and 7. The NODEFAULT keyword in the
OLEDragDrop event code is used to suppress the menu when right dragging.
Additional query words: FxprgClassoop kbvfp600
Keywords: kbhowto KB184386