Re: [fltk.opengl] How to enable Drag n Drop on OpenGL window ?

2013-02-22 Thread Albrecht Schlosser
On 18.02.2013 12:17, Furqan wrote: ... File only accepted when drop over the Fl_Double_Window. Here is my code.. MainWindow-begin(); // Fl_Double_Window DnDReceiver b(0,0,WINDOW_SIZE_W, WINDOW_SIZE_H); // Drag n Drop Box glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH |

Re: [fltk.opengl] How to enable Drag n Drop on OpenGL window ?

2013-02-18 Thread Furqan
Thanks UWE, I tried but no success, still the same. File only accepted when drop over the Fl_Double_Window. Here is my code.. MainWindow-begin(); // Fl_Double_Window DnDReceiver b(0,0,WINDOW_SIZE_W, WINDOW_SIZE_H); // Drag n Drop Box glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH |

[fltk.opengl] How to enable Drag n Drop on OpenGL window ?

2013-02-17 Thread Furqan
My application is OpenGL based. I have created an OpenGL windows inside of Fl_Double_Window. Now here is the simple code for drag n drop, copied from an example. // SIMPLE RECEIVER CLASS class Receiver : public Fl_Box { public: // Ctor Receiver(int x,int y,int w,int h) :