Adding wxWidgets to existing app

Vadim Zeitlin vadim at wxwidgets.org
Sat Jan 5 16:05:28 PST 2008


On Sat, 05 Jan 2008 18:38:04 +0000 GyroTech <gyrotech at freakinabox.com> wrote:

G> Is it possible to simply add the wxWidgets references to my existing app 
G> and open a dialog or frame along side my SDL window (I'm thinking of a 
G> multiple-window interface somewhat like the GIMP). Or do I need to 
G> refactor my entire app to be based off wxApp.

 The main problem is handling of the event/message loop. It's possible to
use wxWidgets without letting it run the main event loop but it's easier to
let it do it. If you do need to have both SDL and wx event loops in the
same program then the simplest way to manage it is probably indeed to use
different threads. In this case you must do all wxWidgets operations
(starting from instantiating wxApp-derived object) from one thread only.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/




More information about the wx-users mailing list