SFML community forums

Help => Window => Topic started by: Grimshaw on September 29, 2012, 11:29:53 pm

Title: Dragging icons from the windows explorer into the sfml window
Post by: Grimshaw on September 29, 2012, 11:29:53 pm
Hello,

I need some help to figure out how to make the sfml window accept dragging of external icons in the window.
The solution can be windows only if otherwise complicates it too much.

The desired target behaviour as something like this:
Open SFML-based app, go to desktop, drag a random.png and drop it on the SFML window, and have the application recognize that drop and notify me with at least the path of the dropped file.

This could be use to drag images directly into an editor for faster introduction of graphics etc.

Any ideas? Thanks!
Title: Re: Dragging icons from the windows explorer into the sfml window
Post by: Laurent on September 29, 2012, 11:36:31 pm
SFML won't help you with drag'n'drop, so you should rather type "<your OS> + drag + drop" in Google and find some interesting reading ;)