08-04-2006 06:11 PM
08-07-2006 07:04 AM - edited 08-07-2006 07:04 AM
Hi,
treeview information is text, so dragging and dropping from a treeview control to a waveform graoh isn't that sensibleand directly, we only allow dragging and dropping with within listboxes, tree controls, strings, and paths at run time.
For a string therefore, that can work.
Right click the treeview control, and select TreeView>>Properties, then set the Dragging mode to Automatic.
Right click the string, and make sure that the Advanced»Allow Drop is checked.
That will then enable the dragging capability from the Microsoft tree control to the string
The drop event is only monitored between LabVIEW items, so a workaround for the graph of placing an invisible (coloured transparent, not actually non-visible) string control over the top of the waveform graph to capture the new text placed into it to from the Microsoft tree control to catch for that drop event wouldn't be possible.
If you were to work with the native LabVIEW ones however, then that could be directly captured by the waveform graph Drop filter event, and then you would have to work out which item was dragged (with a drag starting event from the LabVIEW tree control to capture which data was being dragged).
Hope that helps.
Thanks
Sacha Emery National Instruments (UK)
Message Edited by SachaE on 08-07-200601:05 PM
Message Edited by SachaE on 08-07-2006 01:08 PM
08-07-2006 07:13 AM
Ooops - forgot the example code.
Hope that helps
Sacha Emery
National Instruments (UK)
08-08-2006 06:57 AM