Hello,
can anybody point me to information how to implement ToolTips and Drag and Drop (from or to the view) for custom views? I'm trying to implement this for treemaps but didn't find anything usefull right now. Is it possible at all? Thanks, Udo |
Hi Udo,
I wrote a little tutorial for DnD http://homepage.ntlworld.com/ted.bracht/id22.htm Hope that helps, Ted www.tedbracht.co.uk "Udo Schneider" <[hidden email]> wrote in message news:4005ceef$[hidden email]... > Hello, > > can anybody point me to information how to implement ToolTips and Drag > and Drop (from or to the view) for custom views? > > I'm trying to implement this for treemaps but didn't find anything > usefull right now. > > Is it possible at all? > > Thanks, > > Udo > |
In reply to this post by Udo Schneider
Udo Schneider wrote:
> can anybody point me to information how to implement ToolTips and Drag > and Drop (from or to the view) for custom views? I can't tell you about tooltips, but a longish post of mine: http://groups.google.com/groups?selm=9c6cri%24rjh%241%40taliesin.netcom.net.uk talks about D&D from a custom view. (The previous long post that it mentions is about D&D from normal Views, and it has been added to the Wiki by some thoughtful soul). I haven't really played with D&D much since I wrote it, but one thing that I know has changed is that the "offical" way of detecting a drag start has changed: quoting from a post of Blair's from 06 Feb '03: ========= D5 dropped the use of DragDetect() because it has a number of problems, e.g. it only works for the right button, and tends to gobble up mouse down events that are not initiating drags. In D5 the MouseTracker itself will take care of drag detection, and this works with any mouse button and doesn't gobble up events that it shouldn't, therefore it is not necessary or desirable to use DragDetect. All one needs to do is to instantiate the MouseTracker in the button down event handler. ========= HTH -- chris |
In reply to this post by Ted Bracht-2
Hi Ted,
thanks for the pointer. I implemented all the logic in the TreeMapPresenter using your guide. Thanks a lot. CU, Udo On Thu, 15 Jan 2004 10:52:33 +0000, Ted Bracht wrote: > Hi Udo, > > I wrote a little tutorial for DnD > > http://homepage.ntlworld.com/ted.bracht/id22.htm > > Hope that helps, > > Ted > www.tedbracht.co.uk > > > "Udo Schneider" <[hidden email]> wrote in message > news:4005ceef$[hidden email]... >> Hello, >> >> can anybody point me to information how to implement ToolTips and Drag >> and Drop (from or to the view) for custom views? >> >> I'm trying to implement this for treemaps but didn't find anything >> usefull right now. >> >> Is it possible at all? >> >> Thanks, >> >> Udo >> |
In reply to this post by Chris Uppal-3
Hi Chriss,
thanks for the links to the news article. Using your article and some digging in MoenTreeView I was able to enable Drag *and* Drop quite easily. Thanks, Udo On Thu, 15 Jan 2004 11:16:14 +0000, Chris Uppal wrote: > Udo Schneider wrote: > >> can anybody point me to information how to implement ToolTips and Drag >> and Drop (from or to the view) for custom views? > > I can't tell you about tooltips, but a longish post of mine: > > http://groups.google.com/groups?selm=9c6cri%24rjh%241%40taliesin.netcom.net.uk > talks about D&D from a custom view. (The previous long post that it mentions > is about D&D from normal Views, and it has been added to the Wiki by some > thoughtful soul). > > I haven't really played with D&D much since I wrote it, but one thing that I > know has changed is that the "offical" way of detecting a drag start has > changed: quoting from a post of Blair's from 06 Feb '03: > > ========= > D5 dropped the use of DragDetect() because it has a number of problems, e.g. > it only works for the right button, and tends to gobble up mouse down events > that are not initiating drags. In D5 the MouseTracker itself will take care > of drag detection, and this works with any mouse button and doesn't gobble > up events that it shouldn't, therefore it is not necessary or desirable to > use DragDetect. All one needs to do is to instantiate the MouseTracker in > the button down event handler. > > ========= > > HTH > > -- chris |
Free forum by Nabble | Edit this page |