The UI Design Tool can create GUI easily, and save to xml file. Then the window can be created by just loading xml file.
Code: Select all
xcgui.XInitXCGUI()
dir := "UITest\QQTest\"
xcgui.XC_LoadResource(dir . "resource.xml", dir)
hXCGUI := xcgui.XC_LoadLayout(dir . "layout.xml")
If xcgui.XC_IsHWINDOW(hXCGUI) {
m_hWindow := hXCGUI
xcgui.XWnd_AdjustLayout(m_hWindow)
xcgui.XWnd_ShowWindow(m_hWindow)
}
xcgui.XRunXCGUI()
xcgui.XExitXCGUI()
Return
Testing files:
XCGUI-LoadLayout Example.7z
One thing I should to tell, the XCGUI.dll is free, but some features in the UI Design Tool need to pay in order to use.