[EMAIL PROTECTED] wrote:
> I want to have a function DoSomethingAfterWindowShown() which should be 
> called after run() is called. How do I do that? By using a timeout handler?

        Maybe you want to intercept the draw() method?
        
        When you show() a window, then return to run(), FLTK will inevitably
        call draw() to draw it. So overriding draw() with your code seems
        like it might be what you want.

        Keep in mind draw() is called /whenever/ the window needs to be redrawn,
        and not just after a show().

        So you might need to override show() as well to set a flag that
        your new draw() code detects and clears, so that it only detects
        when the window is first shown.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to