> I would like to create a callback timer so that I get notified after a
> specified number of seconds/minutes. I would like to, for 
> example, be able
> to display a window/dialog after that. Or, for example, I 
> would like that
> window dialog to die after a specified number of 
> seconds/minutes. Is there
> any such facility in FLTK? A code example will be just wonderful.

Read the docs for Fl::add_timeout(...);

It will set a (oneshot) timer to trigger a callback after a delay.

For example, you could set a timer running that would show a window
after a delay.

Or, for the dismiss case, you simply start a timeout when the dialog is
shown, and when the timer fires its callback, you check if the window is
still sown and if so, dismiss it.

I'll fish about and see if I have an example to hand...



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to