Hi James,
I don't use it myself, but there is an example in Wx::Demo. The
relevent code looks like this:
# files drop target
Wx::StaticText->new( $this, -1, 'Drop files below', [ 10, 140 ] );
my $dropfiles = Wx::ListBox->new( $this, -1, [ 10, 170 ], [ 150, 50 ] );
$dropfiles->SetDropT
i use the following code to allow dragging and dropping files:
$frame->DragAcceptFiles(1);
EVT_DROP_FILES( $frame, \&doit );
sub doit { warn "@_\n" }
but i cannot for the life of me figure out how to associate the dropped
file with a file handle. if you could give me an example it would be
apprec
if it helps any i just want to drag and drop a file onto the gui anywhere
and send it directly to a subroutine without using any buttons or any other
widget
On Fri, Jun 13, 2014 at 2:32 AM, James Howell wrote:
> i use the following code to allow dragging and dropping files:
>
> $frame->DragAcce