Page History
...
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
Code Block |
---|
// 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") |