> I want to have a function DoSomethingAfterWindowShown() which should
> be called after run() is called.

The run() call is the heart of the event-driven system, so in most
systems you can't call anything that interacts with the GUI after
the run() completes. What you could do is to subclass the window,
and override the draw() method to trigger the DoSomething().

You probably also need to add a flag member variable that is set after
you call DoSomething() so that it isn't called on subsequent draw()
calls. Or you could override show() and hide() to track the flag.
Or do something with it in the window close callback.

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

Reply via email to