Is there a library that can load controls (buttons, text boxes, etc.) from an xml file? Kind of like in WPF.
A:
Qt's resource files (*.qrc) are quite similar to XML (though they lack an XML header, so they're not truly proper XML). At least if memory serves, they get parsed and translated to C++ at build-time, so once the application is built, the UI is "fixed".
wxWidgets has an XML-based resource system (XRC, if memory serves) that I believe parses the XML and builds a UI from it at run-time. The UI can be modified independent of the code.
Jerry Coffin
2010-08-13 23:45:33
thanks! exactly what I was looking for!
Martin
2010-08-14 22:36:56
A:
If you want to use GTKmm, then there is GTKBuilder and LibGlade (now deprecated). They get loaded at runtime and define a UI in XML.
Soo Wei Tan
2010-08-13 23:50:34
There is a Windows version of GTKMm (http://live.gnome.org/gtkmm/MSWindows). It does come with a large set of dependent DLLs though.
Soo Wei Tan
2010-08-15 06:29:23