Drag & Drop....

BlitzPlus Forums/BlitzPlus Beginners Area/Drag & Drop....

OverDozing(Posted 2005) [#1]
Hello,

I need a drag and drop solution for my code.
I need to drag an item from a LISTBOX and drop it in a TREEVIEW NODE...
That would be perfect, but is it possible ???? I am in doubt.

I've been looking around and all I found was a Lib named BLESS, pretty good but the Drag and Drop function dont seem to work for what I am looking for.... oh well :/


OverDozing(Posted 2005) [#2]
Huuummmm I am starting to think that it may be possible to code, how about that theory ? could it work ?

if mousedown and itemselected
...itemdrag=itemhandlename
...captureStartMouseX and captureStartMouseY
...if captureNowMouseX<>captureStartMouseX or captureNowMouseY<>captureStartMouseY then draw something on mouse ;show that something as been put in dragmode

elseif mouseup and itemdrag<>""
..;here make a selection on the current mouse position, if we find an TREEVIEW NODE then we had the itemdrag.
..;How could I make a selection from a mouseup? next thing to find
;then we reset everything at the end of the process... the used variable...image on mouse...
endif


CS_TBL(Posted 2005) [#3]
iirc you can't drag/drop in B+ .. (but perhaps I'm wrong ^_^)

You could only make your own gadget system using one giant canvas which is the form of your app, you've to make your own 'gadgets' then, and you could support dragging/dropping then..

ahwell, forget about it .. (I think :)


OverDozing(Posted 2005) [#4]
Huuummm Yeah I think you are right, I should try, it will not work anyway.. lol