Harvey Chapman schrieb: > On Dec 7, 2009, at 12:37 PM, MacArthur, Ian (SELEX GALILEO, UK) wrote: > >>> --> What I want now, is that the second version is "switched off" >> I don't think there is any means to do that. I honestly don't think that >> it should matter, either, though you may have some specific edge case... > > When I wanted to do something similar, I looked at the handle() method for > the widget I was interested in. In my case, I just subclassed the widget and > disabled the drag-and-drop support. > > I'd look at Fl_Choice.cxx and Fl_Menu.cxx and look for FL_PUSH, FL_RELEASE, > and FL_DRAG. With 15-30 minutes worth of effort, you should be able to find > the code branch for your 2nd case. Then, hopefully you can subclass > Fl_Choice, override handle() and prevent the behavior you do not want. Note: > It may not be possible to do this with subclassing, but usually it is. > > I'd also work backwards, find the code that selects a menu item and dismisses > the menu. Then, figure out how you got there. > > Hope that helps. If I had more time today, I would've liked to have figured > it out specifically. > > BTW Did you ever state your FLTK version? > > Harvey
Yes, stated it in the init-post: 1.1.9 Thanks for your tips guys! _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

