The Daily Click ::. Forums ::. Klik Coding Help ::. Drag And Drop
 

Post Reply  Post Oekaki 
 

Posted By Message

Tina Petersen



Registered
  19/09/2003
Points
  350
22nd November, 2005 at 10:07:14 -

Is there any drag and drop which actually works.. The inbuild wont work for me.. either will the 3rd party extension on extension list..



 
- Eternal Life, Or Your Money Back -
http://www.befun.dk/
Currently looking for a home (team)

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
22nd November, 2005 at 13:52:47 -

Or do it yourself:

- Repeat while mouse button is pressed + mouse is overlapping the object to be dragged: Set flag 1 on.
- Flag 1 is on: set the dragged object's position to the mouse position.
- Mouse button is not pressed: Set flag 1 off.

Or something like it.

 
Old member (~2004-2007).

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
22nd November, 2005 at 13:55:53 -

Ah. Well, he didn't say that...
Anyways that isn't too hard anyway. Just watch it you're not dragging files over edit boxes, RTF object and some other objects. The drag won't work well that way.

 
Old member (~2004-2007).

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
22nd November, 2005 at 14:04:47 -

I sometimes do not check user names out of lazyness. Sorry.

 
Old member (~2004-2007).

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
23rd November, 2005 at 02:38:01 -

Works for me.
Here's an example I made for you:

+ Files have been dropped
- Set edit box to Dropped$( 0 )

Pretty simple really - if you drag more than one item you can use a loop with the number of items dropped, and then retrieve all the file names.

 
This is a signature. Have this one on me.

Tina Petersen



Registered
  19/09/2003
Points
  350
2nd December, 2005 at 02:31:55 -

Thanx for the helps guys works now.. It was the ListBox which gave the error.. (since it fills the entire fram) rofl

And a merry december and hopefully xmas frm me to you all ^^

 
- Eternal Life, Or Your Money Back -
http://www.befun.dk/
Currently looking for a home (team)
   

Post Reply



 



Advertisement

Worth A Click