Re: [fltk.general] Shortcut keys are not working, how to make shortcut keys work?

2012-08-31 Thread Furqan
After spending so many days, finally I got it. Unintentionally I pressed the shortcut key when the menu was opened. It worked. So, the issue was menu was not selected or opened. But this seems awkward, anytime and anywhere shortcut keys should work. I am using OpenGL, the full window is covered

Re: [fltk.general] Shortcut keys are not working, how to make shortcut keys work?

2012-08-31 Thread Matthias Melcher
On 31.08.2012, at 14:27, Furqan fur...@real3d.pk wrote: After spending so many days, finally I got it. Unintentionally I pressed the shortcut key when the menu was opened. It worked. So, the issue was menu was not selected or opened. But this seems awkward, anytime and anywhere shortcut

Re: [fltk.general] Shortcut keys are not working, how to make shortcut keys work?

2012-08-31 Thread Furqan
No I am not using any kind of GlWidget of fltk for OpenGL display. I am using the traditional OpenGL subroutines and added into Fl_Double_Window. In this way, I created a menu bar in Fl_Double_Window. On 31.08.2012, at 14:27, Furqan fur...@real3d.pk wrote: After spending so many

Re: [fltk.general] Shortcut keys are not working, how to make shortcut keys work?

2012-08-31 Thread Matthias Melcher
On 31.08.2012, at 17:04, Furqan furqan...@hotmail.com wrote: No I am not using any kind of GlWidget of fltk for OpenGL display. I am using the traditional OpenGL subroutines and added into Fl_Double_Window. In this way, I created a menu bar in Fl_Double_Window. So you create an OpenGL

Re: [fltk.general] How to make fltk support dropping files?

2012-08-31 Thread Greg Ercolano
On 08/31/12 18:18, guyingpinming wrote: I'm working with a project using fltk to construct a gui,but now I want the exe to support the operation of dropping files,that is,if I drop a file to the menuWindow,the software can automatically open the file with the right format(the file itself

Re: [fltk.general] How to make fltk support dropping files?

2012-08-31 Thread Herman
FLTK DnD support works quite reliably in FLTK. You have to derive your own widget and respond to FL_DND_ENTER, FL_DND_LEAVE and FL_DND_RELEASE as well as FL_PASTE: to be more concrete: class mywidget: public Fl_Box { public: mywidget(int X, int Y, int W, int H, const char*