Applies to

Edittable

Description

A boolean property to allow selected rows within an edittable to be dragged from that control.

Usage

enableDrag = Get_Property (objectname,"ENABLEDRAGROWS")

enableDrag = Set_Property (objectname,"ENABLEDRAGROWS", bValue)

Remarks

Values passed in Set_Property():

ValueDescription
bValueBoolean true (1) or false (0)

Returns

Values returned by Get_Property and Set_Property

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

Additional Remarks

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

Example

Declare function Get_Property, Set_Property
 
/* retrieve the ENABLEDRAGROWS property of the TABLE_1 control and if true set to false and vice versa.
 
tblCtrl = @window:".TABLE_1"
 
enableDrag = Get_Property(tblCtrl,'ENABLEDRAGROWS')
if enableDrag then newDrag = 0 else newDrag = 1
enableDrag = Set_Property(tblCtrl,'ENABLEDRAGROWS',newDrag)
  • No labels