[Done] AddWindowTimer(#Window, Timer, Timeout [, Repeats]) ?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

[Done] AddWindowTimer(#Window, Timer, Timeout [, Repeats]) ?

Post by Rescator »

Fred, any chance of a AddWindowTimer(#Window, Timer, Timeout [, Repeats]) ?

Reason for this is that i.e. using: AddWindowTimer(#Window, #Timer2, 1, 1)
would allow one off events.

Current methods involve using PostMessage etc. from a thread, or a mess of global vars.
But with something like this it would be all native, clean and simple.

Alternatively a TriggerWindowTimer(#Window, Timer)
Last edited by Rescator on Thu Sep 29, 2011 1:42 pm, edited 1 time in total.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Just use RemoveWindowTimer() as soon as the event fires and it won't fire again.
quidquid Latine dictum sit altum videtur
Post Reply