>       Manolo -- while looking into this, playing around with
>       examples/native*.cxx program, I noticed a different problem.
>
>       If I run that app and do these steps:
>
>               1) File -> Save As, filter appears
>               2) File -> Open, *filter is missing*
>               3) File -> Save As, *filter is missing*
>
>       The filter being missing is the problem.
>
>       In the example code, it sets the filter() once
>       at the beginning of the app, the assumption being
>       it remains in effect for the widget unless changed.
>
>       But it seems the way the FNFC mac code is written,
>       it doesn't re-apply the filter on subsequent calls
>       to posting the dialog. filter() shows the string still set,
>       but internally the code is skipping calling prepareMacFilter()
>       I think because _filt_total is getting reset to zero in show(),
>       just after post() is called.
>
>       I could change the example program to always call filter()
>       before calling show(), which does fix the problem,
>       but I'm not sure it should need to.
>
>       Perhaps _filt_total shouldn't be reset to zero in show()?
>       Or instead, maybe the checks for _filt_total in post()
>       should be replaced with checks to see if filter() is NULL/""
>       and if not, call prepareMacFilter() so that the filter
>       gets re-applied.
>
>       Opinions? Or perhaps other options?

I agree with you. r.9030 should fix this issue.

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

Reply via email to