RE: Timer ?
Robert Roebling <[email protected]> Fri, 08 Apr 2005 16:03:30 +0200
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
> > I want to create a timer with wx.net. > > > > I must have many method : start - stop - retrieve the time elapsed. > > No need for wx.NET for this. This would be a simple class to create. > > Or do you want an actual event fired when the timer reaches a certain time > or frequency? That is more complicated. I do not think wxWidgets provides > this and there are platform (such as WIN32 API) and perhaps even .NET > runtime (Mono-specific???) ways to do this. wxWidgets both has a wxTimer and a wxStopWatch class. The use of wxTimer is very much recommended as it can interact with the GUI (by sending an event *safely* to the main GUI thread). If you are using an outside class, you would have to use a thread or intermittent polling from the main thread, which is likely not what you want. Robert ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click