guides:programming:programmers_reference_manual:dropaccept

DROPACCEPT Property

Drop Target controls

Set to false during a DRAGOVER event to stop OpenInsight from performing data comparisons against the drop target untl the control is entered again.

dropAccept = Get_Property(dropTarget, "DROPACCEPT")

existingResults = Set_Property(dropTarget,"DROPACCEPT", bValue)

Values passed in Set_Property():

ValueDescription
ValueA boolean true or false.

The result is reset to True at the start of every DRAGOVER event.

Values returned by Get_Property and Set_Property

ValueDescription
dropAcceptA boolean true or false
existingStatethe Boolean status of the control’s DROPACCEPT, when Set_Property was run.
Declare function Get_Property, Set_Property

 

* Only accept data being dragged from EDITLINE_1

 

dragSource = Get_Property("SYSTEM","DRAGSOURCE")

if dragSource # @window:".EDITLINE_1" then

   x = Set_Property(ctrlentid,"DROPACCEPT",0)

end
  • guides/programming/programmers_reference_manual/dropaccept.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1