|
|
On 1 Oct 2020, at 19:36, anmol.mishra wrote:
>
>
> Nothing seems to stop that console window. set_non_modal does not work.
> And even the windows specific code does not work.
>
> win.end();
> Fl::add_timeout(2.0, Update_CB, (void*)&progress);
> win.set_non_modal();
> win.show();
> Fl::check();
> //Sleep(500);
> Show_Topmost(&win);
As Manolo pointed out earlier, win.set_non_modal(); is not going to work because it operates relative to other fltk windows, which is not the issue here.
When I said you should set the window to be non-modal, I was specifically referring to the MS terminology for this (calling a window "non-modal” is a MS’ism) and suggesting that you do that whilst also modifying the topmost attribute.
I was not meaning to suggest you use the fltk method by that name, as it is unlikely to work in this context, as noted before.
The other thing you need to know is that you can not always meaningfully change the attributes of a shown window under the MS way of doing things, so you probably need to set the topmost attribute before you first show the window, or at least hide it before changing the attribute...
We are some way beyond the bounds of fltk at this stage, so you might want to have a little browse around the MSDN docs to see how that all hangs together - they may well explain it more lucidly than I can!
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/53DB07B7-0945-420E-A8A0-2AA23D731FD7%40gmail.com.
[ Direct Link to Message ] | |
|
| |