How to surcharge wxApp::OnRun() ?

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
sago
Earned a small fee
Earned a small fee
Posts: 18
Joined: Tue Oct 21, 2008 7:59 am

How to surcharge wxApp::OnRun() ?

Post by sago » Thu Nov 20, 2008 1:07 pm

Hello!

I have an application derived from wxApp. I use the OnInit() function in order to create sockets. I want to add a loop in the main function(OnRun). But if I surcharge this function, the socket events are not "handled". So how can I do it?

To give a mark, I 've created a class derived from wxEvtHandler for the sockets.

Thanks in advance.

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Thu Nov 20, 2008 2:23 pm

Best way to loop is probably to use a tmer or idle events.

Post Reply