Skip to main content
Version: 20 R7 BETA

OBJECT GET DRAG AND DROP OPTIONS

OBJECT GET DRAG AND DROP OPTIONS ( {* ;} object ; draggable ; automaticDrag ; droppable ; automaticDrop )

ParameterTypeDescription
*OperatorIf specified, object is an object name (string)If omitted, object is a variable
objectanyObject Name (if * is specified) or Variable (if * is omitted)
draggableBooleanDraggable = True; otherwise, False
automaticDragBooleanAutomatic Drag = True; otherwise, False
droppableBooleanDroppable = True; otherwise, False
automaticDropBooleanAutomatic Drop = True; otherwise, False

This command is not thread-safe, it cannot be used in preemptive code.

Description

The OBJECT GET DRAG AND DROP OPTIONS command returns the drag and drop options for the object(s) designated by the object and * parameters for the current process.

If you pass the optional * parameter, this indicates that the object parameter is an object name (a string). If you do not pass this parameter, this indicates that the object is a variable. In this case, you pass a variable reference instead of a string.

The command returns the current drag and drop options, as set in Design mode or for the current process using the OBJECT SET DRAG AND DROP OPTIONS command.

Each parameter returns True or False according to whether the corresponding option is enabled or disabled:

  • draggable = True: Object draggable in programmed mode.
  • automaticDrag = True (only used with text fields and variables, combo boxes and list boxes): Object draggable in automatic mode.
  • droppable = True: Object accepts drops in programmed mode.
  • automaticDrop = True (only used with picture fields and variables, text, combo boxes and list boxes): Object accepts drops in automatic mode.

See also

OBJECT SET DRAG AND DROP OPTIONS