From: Jeremy W. <jez...@ho...> - 2006-03-09 17:13:18
|
>And I wonder if we should not support a higher level interface, by filling >the needed properties of this object on creation, with the files >and the mousepoint automatically. >Then none of the 4 DragDrop functions would be needed and the >event would be much simplier to use. Yeah, I think that would be a better interface - how "easy" would that be to implement? In the end I guess you would end up with an event handler like: sub { my $xpos=shift; #the X cor of the mouse when dropped my $ypos=shift; #the Y cor of the mouse when dropped foreach $myfile (@_) { #for each file dropped on the window ... } } Cheers, jez. |