User Tools

Site Tools


drag_and_drop_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
drag_and_drop_commands [2017/09/07 23:28] – [CS_SetDrgSrc] cs_admindrag_and_drop_commands [2017/09/07 23:29] – [Receiving a drop from a non-CalendarSet Object] cs_admin
Line 288: Line 288:
 
As well as dragging between two CalendarSet areas, you can also drag between non-CalendarSet objects and CalendarSet areas — for example, a row or cell selection from AreaList Pro, another 4D object, a text selection in any (drag and drop savvy) application window or a drop from an external document. 
 
As well as dragging between two CalendarSet areas, you can also drag between non-CalendarSet objects and CalendarSet areas — for example, a row or cell selection from AreaList Pro, another 4D object, a text selection in any (drag and drop savvy) application window or a drop from an external document. 

  
-Receiving a drop from an [[http://www.e-node.net/alp|AreaList Pro]] area is identified by [[Drag and Drop Command#CS_GetDrgSrcArea|CS_GetDrgSrcArea]] returning a negative value (opposite of the AreaList Pro area reference) in the **SourceArea** parameter and its process in **SourceProcessID**.+Receiving a drop from an [[http://www.e-node.net/alp|AreaList Pro]] area is identified by [[Drag_and_Drop_Command#CS_GetDrgSrcArea|CS_GetDrgSrcArea]] returning a negative value (opposite of the AreaList Pro area reference) in the **SourceArea** parameter and its process in **SourceProcessID**.
  
  
If the source of the drag is an [[drag_and_drop_commands#What are access “codes”?|external object]], the callback (if set for the area) will be triggered twice:   
If the source of the drag is an [[drag_and_drop_commands#What are access “codes”?|external object]], the callback (if set for the area) will be triggered twice: 
Line 355: Line 355:
 
After Allowing the drop from external objects in the callback, the **//CS_Action_Drop//** action or the **On Drop** event are used to open the document according to the pathname retrieved from the pasteboard, then process it.  
After Allowing the drop from external objects in the callback, the **//CS_Action_Drop//** action or the **On Drop** event are used to open the document according to the pathname retrieved from the pasteboard, then process it. 
  
-In the following example (available in the [[www.e-node.net/ftp/CalendarSet/CalendarSet_Demo_v13.zip|CalendarSet demonstration database]]) we import events from a XML document. We set the callback and allow drop from external documents in the CalendarSet area object method: +In the following example (available in the [[http://www.e-node.net/ftp/CalendarSet/CalendarSet_Demo_v13.zip|CalendarSet demonstration database]]) we import events from a XML document. We set the callback and allow drop from external documents in the CalendarSet area object method: 
  
   Case of
   Case of

drag_and_drop_commands.txt · Last modified: 2017/09/07 23:30 by cs_admin