Michael Sweet wrote:
>
> The Fl_Native_File_Chooser widget could wait for the FL_KEYUP event
> before showing the dialog...
>
Not a good solution, because the chooser can be opened by
other means (ie. non-key events)
I think what I may need is to add some code on exit from the chooser
(before returning to the user and FLTK) that resync's FLTK's internal
state variables with the OS's actual up/down states for the modifier
keys,
since the native chooser is likely eclipsing all events from FLTK
while open.
I suppose one approach would be to have the chooser's code somehow
resync FLTK's internal state variables to reality (OS's shift state),
or maybe there's some way to keep FLTK in the loop of events while
the chooser is open?
This probably gets very OS specific, which I suppose is OK given
the kind of weird widget FNFC is. Wouldn't mind some pointers though,
since I'm paradoxically not very knowledgeable at all about WIN32
or Mac's underlying event systems, and how to smoothly dovetail
with FLTK at that level.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk