XTREE enhancement: drag/drop between trees. To enable, set the new flag XTF2_DRAGDROP2 (&h00002000) in the source tree, and specify the new new Advanced Coldef Option, DragDropClick=###, in the destination tree. (### is the negative exitcode to be generated when an item (or items) from the source tree is/are dropped on to the destination tree. (For example, DragDropClick=150 will generate exitcode -150.)
Notes
• | This form of drag/drop (inter-tree) does not require any special mapping of the answer array (as is required with the intra-tree drag/drop activated by XTF_DRAGDROP). |
• | Both forms of drag/drop are essentially independent (you can have either one or both). |
• | No distinction is made regarding the exact position of the drop within the target control. The only information returned to the application will be the selection information for the source tree, and the DragDropClick exitcode from the target tree. |
• | It is left to the application to complete the operation signified by the drag/drop action. (Typically this would involve copying the selected items from the source tree to they destination tree, and perhaps removing them from the source tree.) |
The sample program XTRA4.BP in [908,21] has been completely rewritten to demonstrate a simple shopping cart application using this capability.