| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| | | <LocalDebuggerCommand>D:\xclient64\xexplorer64.exe</LocalDebuggerCommand> |
| | | <LocalDebuggerWorkingDirectory>D:\xclient64</LocalDebuggerWorkingDirectory> |
| | | <LocalDebuggerCommand>d:\xclient64\xexplorer64.exe</LocalDebuggerCommand> |
| | | <LocalDebuggerWorkingDirectory>d:\xclient64</LocalDebuggerWorkingDirectory> |
| | | <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> |
| | | <LocalDebuggerCommandArguments>-noupdate</LocalDebuggerCommandArguments> |
| | | </PropertyGroup> |
| | |
| | | long len = items.length(); |
| | | xstring tools; |
| | | wchar_t tool[1204]; |
| | | const wchar_t * templ = L"<xtoolbutton width ='80' imageflow ='top' height ='80' caption ='%s' name ='Menu-%d' src ='icons32/%s白.png' style ='font-family:思源黑体 CN Bold;font-size:9pt;margin:8;text-align:center;background-color:%s;background-radius:8pt;'><help>%s</help></xtoolbutton>"; |
| | | const wchar_t * templ = L"<vbox width ='90' height='110' style='margin:8,0,0,8'><xtoolbutton width ='70' imageflow1 ='top' height ='70' caption ='%s' name ='Menu-%d' src ='icons32/%s白.png' style ='background-color:%s;background-radius:8pt;'><help>%s</help></xtoolbutton><xlabel width ='70' caption='%s' style ='font-family:思源黑体 CN Bold;font-size:9pt;text-align:center;'/></vbox>"; |
| | | std::vector<const wchar_t*> colors{L"#DE9832",L"#32B2E6",L"#FFEF34",L"#2EA14A",L"#D54C84"}; |
| | | for (int i = 0; i < len; i++) |
| | | { |
| | |
| | | xstring name = items.item(i).selectSingleNode(L"name").text(); |
| | | xstring id = items.item(i).selectSingleNode(L"id").text(); |
| | | xstring src = name.replace(L"管理", L"").replace(L"模块", L""); |
| | | swprintf_s(tool, 1024, templ, name.c_str(), i, src.c_str(), colors[i % 5],name.c_str()); |
| | | swprintf_s(tool, 1024, templ, L"", i, src.c_str(), colors[i % 5], name.c_str(), name.c_str()); |
| | | if (i == 0) tools = tool; else tools += tool; |
| | | } |
| | | tools = L"<box layerflow ='htmlflow'>" + tools + L"</box>"; |