diff --git a/examples/proto_debuger/new_monitor_form.cpp b/examples/proto_debuger/new_monitor_form.cpp index 1acb3126..e5502313 100644 --- a/examples/proto_debuger/new_monitor_form.cpp +++ b/examples/proto_debuger/new_monitor_form.cpp @@ -91,26 +91,24 @@ void NewMonitorForm::InitWindow() element->SetTextPadding({ 6,0,6,0 }); element->SetText(nbase::StringPrintf(L"udp server")); combo_add_new->Add(element); - - } combo_add_new->AttachAllEvents([this](ui::EventArgs* ev) { if (nullptr != ev) { + auto p = static_cast(ev->pSender); + if (ev->Type == 42) { auto text = p->GetText(); wprintf(L"%s\r\n", text.c_str()); } printf("%d\r\n", ev->Type); - auto p = static_cast(ev->pSender); auto text = p->GetText(); wprintf(L"%s\r\n", text.c_str()); } return true; }); - - } + LRESULT NewMonitorForm::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { return __super::OnClose(uMsg, wParam, lParam, bHandled); diff --git a/resources/lang/en_US/gdstrings.ini b/resources/lang/en_US/gdstrings.ini new file mode 100644 index 00000000..e3badba0 --- /dev/null +++ b/resources/lang/en_US/gdstrings.ini @@ -0,0 +1,24 @@ +;String resources in English +;Example: +;STRID_MAINWINDOW_BUTTON_LOGIN = Login +;TIPID_MAINWINDOW_BUTTON_LOGIN = Click to login +;comment symbol:“;” +;rule:Every window uses its own strings. One windows is not permitted to use strings of other windows'. + +;Common +STRING_OK = OK +STRING_CANCEL = Cancel + +;cef Browser +STRID_CEF_BROWSER_WINDOW_MODE = Window Mode Cef Browser Component Test +STRID_CEF_BROWSER_BACKWARD = Back +STRID_CEF_BROWSER_FORWARD = Forward +STRID_CEF_BROWSER_INPUT_ADDRESS = Input Address +STRID_CEF_BROWSER_BROWSE_TO = Go To +STRID_CEF_BROWSER_REFRESH = Reload +STRID_CEF_BROWSER_HELLO_JS = Hello JS! +STRID_CEF_BROWSER_INPUT_TEXT = Input text sending to JS +STRID_CEF_BROWSER_SEND_TO_JS = Send to JS +STRID_CEF_BROWSER_OFF_SCREEN_MODE = Off-screen Rendering Cef Browser Component Test +STRID_CEF_BROWSER_RECEIVE_JS_MSG = Received Msg From JS: %s +STRID_CEF_BROWSER_MULTI_TAB = Multi Tab Browser diff --git a/resources/lang/zh_CN/gdstrings.ini b/resources/lang/zh_CN/gdstrings.ini new file mode 100644 index 00000000..4e2736e6 --- /dev/null +++ b/resources/lang/zh_CN/gdstrings.ini @@ -0,0 +1,25 @@ +;中文简体字符资源 +;事例 +;常规字符:STRID_MAINWINDOW_BUTTON_LOGIN = 登 录 +;Tip字符 :TIPID_MAINWINDOW_BUTTON_LOGIN = 点击登录 +;注释符号:“;” +;使用规范:每个窗口单独成方阵,不允许出现跨窗口复用情况(一个字符资源多个窗口使用) + +;通用 +STRING_OK = 确定 +STRING_CANCEL = 取消 + +;cef 浏览器 +STRID_CEF_BROWSER_WINDOW_MODE = 有窗模式Cef浏览器组件测试 +STRID_CEF_BROWSER_BACKWARD = 后退 +STRID_CEF_BROWSER_FORWARD = 前进 +STRID_CEF_BROWSER_INPUT_ADDRESS = 请输入地址 +STRID_CEF_BROWSER_BROWSE_TO = 转到 +STRID_CEF_BROWSER_REFRESH = 刷新 +STRID_CEF_BROWSER_HELLO_JS = 你好JS! +STRID_CEF_BROWSER_INPUT_TEXT = 输入发送给JS的文本 +STRID_CEF_BROWSER_SEND_TO_JS = 发送给JS +STRID_CEF_BROWSER_OFF_SCREEN_MODE = 离屏渲染Cef浏览器组件测试 +STRID_CEF_BROWSER_RECEIVE_JS_MSG = 收到来自JS的消息:%s +STRID_CEF_BROWSER_MULTI_TAB = 可拖拽多标签浏览器 +STRID_CEF_BROWSER_CLOSING = 当前窗口包含多个标签页,确定要关闭吗? diff --git a/resources/themes/default/basic/basic.xml b/resources/themes/default/basic/basic.xml new file mode 100644 index 00000000..eb2e392e --- /dev/null +++ b/resources/themes/default/basic/basic.xml @@ -0,0 +1,26 @@ + + + + + + +