开发者

C++\Win32 API - Load controls at run-time from xml

开发者 https://www.devze.com 2023-01-12 00:52 出处:网络
Is there a library that can load controls (buttons, text bo开发者_如何转开发xes, etc.) from an xml file? Kind of like in WPF.Qt\'s resource files (*.qrc) are quite similar to XML (though they lack an

Is there a library that can load controls (buttons, text bo开发者_如何转开发xes, etc.) from an xml file? Kind of like in WPF.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消