Acceptable drag and drop sources
Usage
Set_Property(OLECtrlEntID, "OLE.DropSources", StringValue)
Values
StringValue can be any string meeting the following format requirements:
Syntax: @FM delimited list of tree controls
Default: ""
Remarks
The DropSources property establishes which tree controls are allowed to drag their items onto this tree control. By default, this property is empty, which means that all tree controls are allowed to drop items onto this one. However, once you set this property to one or more tree controls, only those controls listed will be permitted to drop items onto this control.
In OpenInsight each control has a unique control entity ID, but the SRP OLE Controls are not aware of their control entity IDs. So, in order for the DropSources property to be of any use, you have to first set the CtrlEntId property for all your source trees. Once you've done this, then you may set this property to an @FM delimited list of tree control entity IDs.
There are other properties, methods, and events necessary to implement a complete drag and drop solution. See Drag and Drop for more details.
Example
// There are four trees: Main Tree, Tree A, Tree B, Tree C // First, make sure all their CtrlEntIds are set Set_Property(@Window:".OLE_TREE", "OLE.CtrlEntId", @Window:".OLE_TREE") Set_Property(@Window:".OLE_TREE_A", "OLE.CtrlEntId", @Window:".OLE_TREE_A") Set_Property(@Window:".OLE_TREE_B", "OLE.CtrlEntId", @Window:".OLE_TREE_B") Set_Property(@Window:".OLE_TREE_C", "OLE.CtrlEntId", @Window:".OLE_TREE_C") // Allow only trees A and C to drag to the main tree Set_Property(@Window:".OLE_TREE", "OLE.DropSources", @Window:".OLE_TREE_A":@FM:@Window:".OLE_TREE_C")