wxTimer don't refresh

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Earned a small fee
Earned a small fee
Posts: 23
Joined: Mon Nov 26, 2007 3:58 pm

wxTimer don't refresh

Post by BlueHazzard » Tue Apr 22, 2008 5:27 pm

i have a problem with wxTimer. My Window struct:

Code: Select all

wxFrame               (Mainframe)
       -wxNotebook    (Notebook with 5 pages)
           -wxWindow  (Page nr 2 <-- here i create and call the Timer)
                -wxWindow    (Renderwindow 1)
                -wxWindow    (Renderwindow 2)
I create in the "wxNotebook Page 2" an wxTimer and call it every 20 ms. In the OnTimer method I refresh the content of the two "render windows". But it refresh only when a other page is visible. I mean, the timer runs only when the Page nr 2 isn't visible. What is my error??

very sorry for my poor english....
wxWidgets SDK 2.8.6 MinGW Code::Blocks

Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 23, 2007 3:41 pm
Location: London

Post by Qasim » Fri Apr 25, 2008 4:50 pm

Might help, try calling Refresh(true), i-e forcing the backgroud to clear.
Who doubts nothing, Knows nothing

Post Reply