On an efficiency note, when the mouse is not over the canvas, does the canvas really need to be redrawing as often? Perhaps you could disable the timer when the mouse leaves? OnPaint() should still catch required refreshes.
Connect..
Connect(GetID(), wxEVT_LEAVE_WINDOW, OnMouseLeave) Connect(GetID(), wxEVT_ENTER_WINDOW, OnMouseEnter) 'And the functions Function OnMouseLeave(event:wxEvent) FryCanvas(event.parent).Tmr_ReDraw.Stop() DebugLog "MouseLeave?" End Function Function OnMouseEnter(event:wxEvent) FryCanvas(event.parent).Tmr_ReDraw.Start(10) DebugLog "MouseEnter!!" End Function
OnMouseLeave() never gets called? (connected inside of FryCanvas)