recognizing dragged file

BlitzMax Forums/BlitzMax Beginners Area/recognizing dragged file

Hardcoal(Posted 2013) [#1]
How can i recognize a dragged file to the area of my applolication window.
For example if i drag a png image i want the my program to load it.

Is it something related to the appargs Command?


Brucey(Posted 2013) [#2]
Assuming you are using MaxGUI, it raises an event of type EVENT_WINDOWACCEPT when your window is created with the flag WINDOW_ACCEPTFILES.


Hardcoal(Posted 2013) [#3]
I do use maxgui.
But what reads the accaptence?
Where do i extract the name


Henri(Posted 2013) [#4]
Hello,

you can get the filename with "EventExtra().tostring()" -statement

-Henri


Hardcoal(Posted 2013) [#5]
Cool tnx