Applies to

Drop Target controls

Description

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

Usage

dropAccept = Get_Property (dropTarget, "DROPACCEPT")

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

Remarks

Values passed in Set_Property():

ValueDescription
ValueA boolean true or false.

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

Returns

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.

See Also

DROPSOURCE propertyDROPCOPY propertyDRAGMOVE property

Example

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
  • No labels