Search code examples
c++wxwidgets

wxwidgets event at specific time


I need to check system time and if the time is right (i think the right time has passed during some interval ago would be more correct) make certain actions using wxwidgets. I haven't found a specific class or event that can handle such conditions (I know there is wxTimer widget but it is timer - it counts time since some moment but not checks it) Is there a better way than having a thread that just runs a while(true) loop checking system time?


Solution

  • Looks like the wxTimer class generates an event when the duration has elapsed:
    wxTimerEvent documentation.