drag_and_drop_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
drag_and_drop_commands [2017/09/07 23:17] – [CS_GetDrgDst] cs_admin | drag_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:// | + | Receiving a drop from an [[http:// |
If the source of the drag is an [[drag_and_drop_commands# |
If the source of the drag is an [[drag_and_drop_commands# | ||
Line 355: | Line 355: | ||
After Allowing the drop from external objects in the callback, the **// |
After Allowing the drop from external objects in the callback, the **// | ||
- | In the following example (available in the [[www.e-node.net/ | + | In the following example (available in the [[http://www.e-node.net/ |
Case of | Case of | ||
Line 646: | Line 646: | ||
| -> SrcCodeN | text | access code(s) to allow drag | | | -> SrcCodeN | text | access code(s) to allow drag | | ||
- | **// | + | **// |
This command must be called before a drag is initiated (usually in the **On load** form event processing). | This command must be called before a drag is initiated (usually in the **On load** form event processing). | ||
Line 659: | Line 659: | ||
**SrcCode** — Text. The **SrcCode** can be any value (other than an empty string), such as “MonthDrag”, | **SrcCode** — Text. The **SrcCode** can be any value (other than an empty string), such as “MonthDrag”, | ||
- | The code should be the same as what is passed into a potential drag partner. The drag partner will be the destination/ | + | The code should be the same as what is passed into a potential drag partner. The drag partner will be the destination/ |
- | CalendarSet performs the following logic when the drag and drop takes place: the source codes that were given in **SrcCode1**, | + | CalendarSet performs the following logic when the drag and drop takes place: the source codes that were given in **SrcCode1**, |
If any of the codes match, the drop is enabled. | If any of the codes match, the drop is enabled. | ||
- | In addition, any source access code will make a CalendarSet area draggable to external | + | In addition, any source access code will make a CalendarSet area draggable to [[drag_and_drop_commands# |
- | See the examples to **//CS_SetDrgDst//**. | + | See the examples to [[Drag_and_Drop_Commands# |
<color # | <color # | ||
< |
< | ||
- | * <color # | + | * <color # |
- | * <color # | + | * <color # |
---- | ---- |
drag_and_drop_commands.txt · Last modified: 2017/09/07 23:30 by cs_admin