FLTK logo

Re: [fltk.general] program exits after Fl_Window.hide()

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: program exits after Fl_Window.hide() Greg Ercolano Aug 08, 2021  
 

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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.