Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== ENABLEDROP Property ====== ==== Applies To ==== All Controls except OLE controls. ==== Description ==== 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. ==== Usage ==== enableDrop = Get_Property(objectname,"ENABLEDROP") enableDrop = Set_Property(objectname,"ENABLEDROP", bValue) ==== Remarks ==== Values passed in Set_Property(): ^Value^Description^ |bValue|Boolean true (1) or false (0)| ==== Returns ==== Values returned by Get_Property and Set_Property ^Value^Description^ |state|the Boolean status of the control’s drop ability.| |existingState|the Boolean status of the control’s drop 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|ColStyle message]] ==== Example ==== <code> 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) </code> guides/programming/programmers_reference_manual/enabledrop.txt Last modified: 2024/06/19 20:20by 127.0.0.1