|
|
On 8/8/21 5:54 PM, Rodolfo Borges wrote:
My program have a "splash" window that shows before the
"main" window.
On my machine (Windows 7) it works fine, but on my partner's
machine (Windows 10) the program abruptly ends as soon as I call
hide() on the splash window.
(On Linux and Mac it works ok, too.)
Any ideas?
FLTK's Fl::run() returns when there's no windows open, so
make sure you show()
the main window just before hide()ing the splash window.
I assume you're using an Fl::add_timeout() to trigger the
mainwin->show() and
splashwin->hide(), so just be sure to do them in that
order.
You want to avoid having /no window/ open even for a short
time,
or the event loop will think the app has completed.
--
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/cd0d24d0-4f26-74a9-8eec-271967f6cb2d%40seriss.com.
[ Direct Link to Message ] | |
|
| |