Article #376: Waiting for a Window to Close

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Articles | Show Comments | Submit Comment ]

Article #376: Waiting for a Window to Close

Created at 07:59 Jan 29, 2005 by mike

The easiest way to wait for a window to close is to use the Fl_Window::shown() and Fl::wait() methods in a while loop:

while (window->shown()) Fl::wait();

Download | Home Page | Listing ]


Submit Comment ]

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