We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Prevent node drag in TreeViewAdv

First of all, thanks for the TreeViewAdv, it's a really nice control as it is, and I'm sure it will keep getting better. Question: how can I prevent the dragging of nodes within the control? I seem to be missing the AllowDrag property (or something like that). I don't want the user to be able to rearrange nodes, and with out a property on the control or a cancelable event (BeforeDrag), I can't see how to prevent that. Another thing that would be cool: I'm using the right images as indicators and I'd like to associate tip text with each image. Any quick pointers on how (or if) this can be done? Sean

5 Replies

NG Neal Granroth July 1, 2003 12:51 PM UTC

> Question: how can I prevent the dragging of nodes within the control? - Implement a handler for the QueryContinueDrag event. - Within it, set e.Action = Drag.Cancel Hope this helps. Neal


TA Todd Armstrong January 27, 2004 02:05 AM UTC

Where does the Drag.Cancel come from. I don''t have a reference to it and want to do the same thing. > >> Question: how can I prevent the dragging of nodes within the control? > >- Implement a handler for the QueryContinueDrag event. > >- Within it, set e.Action = Drag.Cancel > > >Hope this helps. >Neal


TA Todd Armstrong January 27, 2004 02:14 AM UTC

I figured it out. It should be: e.Action = DragAction.Cancel; >Where does the Drag.Cancel come from. I don''t have a reference to it and want to do the same thing. > >> >>> Question: how can I prevent the dragging of nodes within the control? >> >>- Implement a handler for the QueryContinueDrag event. >> >>- Within it, set e.Action = Drag.Cancel >> >> >>Hope this helps. >>Neal


JR Jack Rubin May 8, 2004 10:47 PM UTC

Please contact me regarding H8 emulators (Dave x2). Thanks!


JR Jack Rubin May 8, 2004 10:50 PM UTC

In case the subject of the prior msg is not displayed, this note is to Neal Granroth. >Please contact me regarding H8 emulators (Dave x2). Thanks! Jack Rubin www.sebhc.org

Loader.
Up arrow icon