Article View: borland.public.jbuilder.java.language
Article #16243TreeControl with Drag and Drop
From: Tom Heagy
Date: Thu, 11 Mar 1999 00:00
Date: Thu, 11 Mar 1999 00:00
16 lines
1241 bytes
1241 bytes
I'm attempting to create a window that has 2 TreeControls and I want to allow the user to drag an item from 1 tree onto another. I can easily find when certain critical mouse events occur (via "_mouseDragged", "_mouseClicked", and "_mouseReleased" events. My problem is in turning off the native functionality of the TreeControl whenever a "mouse drag" is in process. As an example- I have a tree that has 15 items on it. When I select item number 3 and attempt to drag it downward [for example], the TreeControl automatically selects the items beneath the cursor and UNselects the original item. Does anyone know of a way for me to turn this off whenever dragging is occurring? Thanks in advance, -Tom
Technical Details
Message-ID:
<36E81455.AA179FA9@sciatl.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,bb00b6fd37fb2224,start X-Google-Attributes: gidf74b3,public From: Tom Heagy <tom.heagy@sciatl.com> Subject: TreeControl with Drag and Drop Date: 1999/03/11 Message-ID: <36E81455.AA179FA9@sciatl.com> X-Deja-AN: 453892380 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language