Skip to content

Commit

Permalink
25.1.16 Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Jan 16, 2025
1 parent cc57d5c commit 3015851
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Debug/script/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ g_.Notify = {};

AboutTE = function (n) {
if (n == 0) {
return te.Version < 20240616 ? te.Version : 20241223;
return te.Version < 20240616 ? te.Version : 20250116;
}
if (n == 1) {
const v = AboutTE(0);
Expand Down
10 changes: 10 additions & 0 deletions Debug/script/sync1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2340,6 +2340,10 @@ te.OnSystemMessage = function (Ctrl, hwnd, msg, wParam, lParam) {
break;
case WM_ACTIVATE:
g_.focused = void 0;
if (g_.hwndTooltip) {
api.ShowWindow(g_.hwndTooltip, SW_HIDE);
g_.hwndTooltip = void 0;
}
if (te.Data.bSaveMenus) {
te.Data.bSaveMenus = false;
SaveXmlEx("menus.xml", te.Data.xmlMenus);
Expand Down Expand Up @@ -3235,6 +3239,12 @@ AddEvent("ReplacePath", function (FolderItem, Path) {
}
});

AddEvent("ToolTip", function (Ctrl, Index, hwnd) {
if (Index == WM_PAINT && Ctrl.Type == CTRL_TE) {
g_.hwndTooltip = hwnd;
}
});

AddEvent("AddType", function (arFunc) {
for (let i in g_basic.Func) {
arFunc.push(i);
Expand Down

0 comments on commit 3015851

Please sign in to comment.