guides:programming:programmers_reference_manual:enabledrop

ENABLEDROP Property

All Controls except OLE controls.

A boolean property to mark the control as a drop target. Setting this property will allow for notifying the control that data is dragged over it.

enableDrop = Get_Property(objectname,"ENABLEDROP")

enableDrop = Set_Property(objectname,"ENABLEDROP", bValue)

Values passed in Set_Property():

ValueDescription
bValueBoolean true (1) or false (0)

Values returned by Get_Property and Set_Property

ValueDescription
statethe Boolean status of the control’s drop ability.
existingStatethe Boolean status of the control’s drop ability, when Set_Property was run.

To enable drag and drop within edittable columns the ColStyle Message needs to be used. See ColStyle message

Declare function Get_Property, Set_Property

 

/* retrieve the ENABLEDROP property of the EDITLINE_1 control and if true set to false and vice versa.

 

enableDrop = Get_Property(@window:'.EDITLINE_1','ENABLEDROP')

if enableDrop then newDrag = 0 else newDrop = 1

enableDrop = Set_Property(@window:'.EDITLINE_1','ENABLEDROP',newDrop)
 
 
 
 
 
 
  • guides/programming/programmers_reference_manual/enabledrop.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1