On 11.02.2013 11:11, MacArthur, Ian (Selex ES, UK) wrote:
>
>> It seems that pulldown() doesn't return until I press Esc, and
>> handle(FL_LEAVE) doesn't get called until then.
>
> Yup - this seems to be a "weakness" here; we have the pulldown method which
> allows us to programmatically show the menu, but I can't see an equivalent
> method to ask the menu to close again, programmatically...
>
> I tried a few tests around your code, and what I wanted was a method I could
> call to ask the menu to close again ("pushup" ?) in response to some event,
> e.g. a leave or similar... but...
>
> Anyone?
Not much help from me, but pulldown() as well as popup() are
"synchronous" methods. From the docs of popup():
"The menu stays up until the user picks an item or dismisses it."
Hence, there is no way that these methods do anything like that
requested, AFAICT.
Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk