> > ... the intent is that the programmer explicitly provide a > button to dismiss the widget; it's a usability guidelines > sort of a thing. > > > Though note that, unless you over-ride the default window > callback, you can always dismiss any fltk window by hitting > ESC anyway... > > It seems to me these two points are in conflict with each other, > doesn't ?
Indeed - which is why I mentioned it explicitly. That behaviour is historic, and hard to remove, of course... > It is logical if a window can be dismissed by pressing of > Esc, it must have a button with the same effect. I agree such modal > windows shouldn't have other menu buttons. For example, to avoid of > minimizing. But the button with cross is used instead of "cancel" > button - very expected behaviour. It's not as clear cut as that - you need to make it explicit to the user what state will be returned, and in many cases the dialog will be offering a choice where it is not obvious which is the default; so what value do you get for "cancel"? Now, as programmers, the "right" answer may be obvious to us, but experience tells us that for the end-users there will inevitably be cases where our "obviously right" choice is not the expected value... So, better to make it so that there is an explicit button, then the user has to pick a value... > At least I think some flag should be added to show the button on the > title bar when programmer want it. You should probably file that as an RFE, and we can look at it as an option - though we'll need to support it across all platforms so a win32 only patch is unlikely to be acceptable. If you have "equivalent" patches for OSX and X11 that'll be better (though I doubt X11 is consistent in this anyway, given the differences between the different WM's in use...) 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-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
