> I wondered if this, from Fl_Menu.cxx, was relevant:
> 
>   case FL_RELEASE:
>     // Mouse must either be held down/dragged some, or this must be
>     // the second click (not the one that popped up the menu):
>     if (!Fl::event_is_click() || pp.state == PUSH_STATE ||
>         pp.menubar && pp.current_item && 
> !pp.current_item->submenu() // button
>         ) {
> #if 0 // makes the check/radio items leave the menu up
>       const Fl_Menu_Item* m = pp.current_item;
>       if (m && button && (m->flags & 
> (FL_MENU_TOGGLE|FL_MENU_RADIO))) {
>         ((Fl_Menu_*)button)->picked(m);
>         pp.p[pp.menu_number]->redraw();
>       } else
> #endif
>       // do nothing if they try to pick inactive items
>       if (!pp.current_item || pp.current_item->activevisible())
>         pp.state = DONE_STATE;
>     }
> 
> Perhaps it's FLTK version-specific?  We're at 1.1.9 here.

Hmm - that does look like it may be relevant...

If you change the "#if 0" to a "#if 1" how does that fly?



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to