This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
OBJECT SET DRAG AND DROP OPTIONS

OBJECT SET DRAG AND DROP OPTIONS 


 

OBJECT SET DRAG AND DROP OPTIONS ( {* ;} object ; draggable ; automaticDrag ; droppable ; automaticDrop ) 
Parameter Type   Description
Operator in If specified, object is an object name (string)
If omitted, object is a variable
object  Form object in Object Name (if * is specified) or
Variable (if * is omitted)
draggable  Boolean in Draggable = True; otherwise, False
automaticDrag  Boolean in Automatic Drag = True; otherwise, False
droppable  Boolean in Droppable = True; otherwise, False
automaticDrop  Boolean in Automatic Drop = True; otherwise, False

The OBJECT SET DRAG AND DROP OPTIONS command sets or dynamically modifies 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.

In each parameter, you pass a Boolean indicating 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.

Example  

Setting a text area to automatic drag and drop:

 OBJECT SET DRAG AND DROP OPTIONS(*;"Comments";False;True;False;True)



See also 

OBJECT GET DRAG AND DROP OPTIONS

 
PROPERTIES 

Product: 4D
Theme: Objects (Forms)
Number: 1183

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v13

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)