Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Dragging icons from the windows explorer into the sfml window  (Read 2830 times)

0 Members and 1 Guest are viewing this topic.

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Dragging icons from the windows explorer into the sfml window
« 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!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Dragging icons from the windows explorer into the sfml window
« Reply #1 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 ;)
Laurent Gomila - SFML developer

 

anything