On 19 May 2011, at 20:13, Nikita Egorov wrote:

> Is it intended behaviour that "modal" windows have not button "close" under 
> Win32 (Windows7 at the moment)?

You mean the lack of a close button in the window border decorations?
Yes, I think that is intended - 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...



> Every time I add the WS_SYSMENU style to such windows to give possibility to 
> close them by ordinary way.
> 
> If not, root of the problem lays in Fl_Win32.cxx:1494
> 
>    if (by+bt) {
>      if (!w->modal()) style |= WS_SYSMENU | WS_MINIMIZEBOX;
> 
> 
> I'd write instead:
> 
>    if (by+bt) {
>      style |= WS_SYSMENU;
>      if (!w->modal()) style |= WS_MINIMIZEBOX;

Could certainly post that as an RFE on an STR - though I don't know if it will 
change, IIRC it has been discussed before and we decided to stay with the 
current settings.




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

Reply via email to