Skip to content

Commit 6185c6a

Browse files
committed
21.11.4
1 parent e8da76b commit 6185c6a

4 files changed

Lines changed: 36 additions & 48 deletions

File tree

1.52 KB
Binary file not shown.

docs/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<TablacusExplorer><Item Id="segoeicons"><General><Version>1.02</Version><MinVersion>2021.9.5</MinVersion><pubDate>Mon, 01 Nov 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Segoe Fluent Icons</Name><Description>Replace the standard icon with Segoe Fluent Icons or Segoe UI MDL2 Assets. *Windows 10 or higher is required</Description></en></Item>
2+
<TablacusExplorer><Item Id="fixwin11prev"><General><Version>1.01</Version><MinVersion>2021.10.12</MinVersion><pubDate>Thu, 04 Nov 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Fix Windows 11 bug</Name><Description>Workaround: Tooltip issues.</Description></en><ja><Name>Windows 11のバグ対策</Name><Description>ツールチップ問題の回避</Description></ja></Item>
3+
<Item Id="segoeicons"><General><Version>1.02</Version><MinVersion>2021.9.5</MinVersion><pubDate>Mon, 01 Nov 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Segoe Fluent Icons</Name><Description>Replace the standard icon with Segoe Fluent Icons or Segoe UI MDL2 Assets. *Windows 10 or higher is required</Description></en></Item>
34
<Item Id="folderlistmenu"><General><Version>1.15</Version><MinVersion>2021.10.12</MinVersion><pubDate>Tue, 26 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/folderlistmenu.html</Details></General><en><Name>Folder list menu</Name><Description>Show a menu of folders listed in a text file</Description></en><ja><Name>フォルダーリストメニュー</Name></ja><zh><Name>自訂文字檔選單</Name></zh></Item>
45
<Item Id="sidetreeview"><General><Version>1.24</Version><MinVersion>2021.9.5</MinVersion><pubDate>Wed, 20 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/sidetreeview.html</Details></General><en><Name>Side tree view</Name><Description>Side tree view</Description></en><ja><Name>サイドツリー</Name></ja><zh><Name>共用式樹狀目錄</Name></zh></Item>
56
<Item Id="treeview"><General><Version>1.41</Version><MinVersion>2021.9.5</MinVersion><pubDate>Wed, 20 Oct 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/treeview.html</Details></General><en><Name>Tree view</Name><Description>Tree view</Description></en><ja><Name>ツリー</Name></ja><zh><Name>樹狀目錄</Name></zh></Item>
@@ -41,7 +42,6 @@
4142
<Item Id="remember"><General><Version>1.40</Version><MinVersion>2021.7.23</MinVersion><pubDate>Tue, 17 Aug 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/remember.html</Details></General><en><Name>Remember folder view settings</Name><Description>Automatically remember folder view settings.</Description></en><ja><Name>フォルダの表示設定を覚える</Name><Description>自動的にフォルダの表示設定を覚えます。</Description></ja><zh><Name>記住每個資料夾檢視</Name></zh></Item>
4243
<Item Id="addressbar"><General><Version>1.68</Version><MinVersion>2021.5.7</MinVersion><pubDate>Tue, 17 Aug 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/addressbar.html</Details></General><en><Name>Address bar</Name><Description>Breadcrumbs and XP style is available.</Description></en><ja><Name>アドレスバー</Name><Description>パンくずリスト、XPスタイルが選べます。</Description></ja><zh><Name>位址列</Name></zh></Item>
4344
<Item Id="ordercb"><General><Version>1.00</Version><MinVersion>2021.7.23</MinVersion><pubDate>Fri, 13 Aug 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Order of clipboard</Name><Description>Cut/copy to clipboard will be done in the order in which they are displayed in the view.</Description></en><ja><Name>クリップボードの順序を表示順に</Name><Description>クリップボードへのカット/コピーを表示された順にします。</Description></ja></Item>
44-
<Item Id="fixwin11prev"><General><Version>1.00</Version><MinVersion>2021.7.23</MinVersion><pubDate>Wed, 11 Aug 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Fix Windows 11 Preview bug</Name><Description>Workaround: Selection problem.</Description></en><ja><Name>Windows 11 Previewのバグ対策</Name><Description>選択がおかしくなるバグ対策</Description></ja></Item>
4545
<Item Id="t7zip"><General><Version>1.09</Version><MinVersion>2021.7.23</MinVersion><pubDate>Tue, 10 Aug 2021 00:00:00 GMT</pubDate><DllVersion>1.1.0.0</DllVersion><Creator>Gaku</Creator></General><en><Name>7-Zip</Name><Description>7-Zip *7d.dll and 7zG.exe is required.</Description></en><ja><Name>7-Zip</Name><Description>7-Zip ※7d.dll と 7zG.exe が必要</Description></ja></Item>
4646
<Item Id="tabplus"><General><Version>1.89</Version><MinVersion>2021.7.23</MinVersion><pubDate>Sat, 07 Aug 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/tabplus.html</Details></General><en><Name>Tab plus</Name><Description>Tab plus</Description></en><ja><Name>タブプラス</Name></ja><zh><Name>進階頁籤</Name></zh></Item>
4747
<Item Id="drivebar"><General><Version>1.18</Version><MinVersion>2021.7.16</MinVersion><pubDate>Sun, 25 Jul 2021 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Details>https://tablacus.github.io/wiki/addons/drivebar.html</Details></General><en><Name>Drive bar</Name><Description>Drive bar</Description></en><ja><Name>ドライブバー</Name></ja><zh><Name>磁碟列</Name></zh></Item>

fixwin11prev/config.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<TablacusExplorer>
33
<General>
4-
<Version>1.00</Version>
5-
<MinVersion>2021.7.23</MinVersion>
6-
<pubDate>Wed, 11 Aug 2021 00:00:00 GMT</pubDate>
4+
<Version>1.01</Version>
5+
<MinVersion>2021.10.12</MinVersion>
6+
<pubDate>Thu, 04 Nov 2021 00:00:00 GMT</pubDate>
77
<Creator>Gaku</Creator>
88
<URL>http://tablacus.github.io/TablacusExplorerAddons/</URL>
99
<License>MIT License</License>
1010
</General>
1111
<en>
12-
<Name>Fix Windows 11 Preview bug</Name>
13-
<Description>Workaround: Selection problem.</Description>
12+
<Name>Fix Windows 11 bug</Name>
13+
<Description>Workaround: Tooltip issues.</Description>
1414
</en>
1515
<ja>
16-
<Name>Windows 11 Previewのバグ対策</Name>
17-
<Description>選択がおかしくなるバグ対策</Description>
16+
<Name>Windows 11のバグ対策</Name>
17+
<Description>ツールチップ問題の回避</Description>
1818
</ja>
1919
</TablacusExplorer>

fixwin11prev/sync.js

Lines changed: 27 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,33 @@
1+
Sync.FixWin11Preview = {
2+
rc: api.Memory("RECT")
3+
}
4+
5+
AddEvent("ToolTip", function (Ctrl, Index) {
6+
if (Ctrl.Type == CTRL_SB && Index >= 0) {
7+
api.GetCursorPos(Sync.FixWin11Preview.pt);
8+
Sync.FixWin11Preview.rc.left = LVIR_SELECTBOUNDS;
9+
api.SendMessage(Ctrl.hwndList, LVM_GETITEMRECT, Index, Sync.FixWin11Preview.rc);
10+
Sync.FixWin11Preview.hList = Ctrl.hwndList;
11+
}
12+
});
13+
114
AddEvent("MouseMessage", function (Ctrl, hwnd, msg, wParam, pt) {
2-
if (Ctrl.Type == CTRL_SB) {
3-
if (msg == WM_LBUTTONDOWN || msg == WM_RBUTTONDOWN) {
4-
const hList = Ctrl.hwndList;
5-
let iItem = Ctrl.HitTest(pt, LVHT_ONITEM);
6-
if (iItem >= 0) {
7-
const rc = api.Memory("RECT");
8-
rc.left = LVIR_SELECTBOUNDS;
9-
api.SendMessage(hList, LVM_GETITEMRECT, iItem, rc);
10-
const ptc = pt.Clone();
11-
api.ScreenToClient(hList, ptc);
12-
if (!PtInRect(rc, ptc)) {
13-
for (iItem = Ctrl.ItemCount(SVGIO_ALLVIEW); --iItem >= 0;) {
14-
rc.left = LVIR_SELECTBOUNDS;
15-
api.SendMessage(hList, LVM_GETITEMRECT, iItem, rc);
16-
if (PtInRect(rc, ptc)) {
17-
if (api.GetKeyState(VK_SHIFT) < 0) {
18-
Ctrl.SelectItem(iItem, SVSI_FOCUSED | SVSI_ENSUREVISIBLE | SVSI_DESELECTOTHERS | SVSI_SELECT);
19-
let i = api.SendMessage(hList, 4162, 0, 0), j = iItem;
20-
if (i > j) {
21-
j = i;
22-
i = iItem;
23-
}
24-
while (i < j) {
25-
Ctrl.SelectItem(i++, SVSI_SELECT);
26-
}
27-
} else {
28-
let wFlags = SVSI_FOCUSED | SVSI_ENSUREVISIBLE | SVSI_SELECTIONMARK;
29-
if (api.GetKeyState(VK_CONTROL) < 0) {
30-
if (api.SendMessage(hList, LVM_GETNEXTITEM, iItem - 1, LVNI_ALL | LVNI_SELECTED) != iItem) {
31-
wFlags |= SVSI_SELECT;
32-
}
33-
} else {
34-
wFlags |= SVSI_DESELECTOTHERS | SVSI_SELECT;
35-
}
36-
Ctrl.SelectItem(iItem, wFlags);
37-
}
38-
return S_OK;
39-
}
40-
}
15+
if (msg == WM_MOUSEMOVE && Ctrl.Type == CTRL_SB && Ctrl.hList == Sync.FixWin11Preview.hList) {
16+
let hwnd, hwnd1;
17+
while (hwnd1 = api.FindWindowEx(null, hwnd1, null, null)) {
18+
if (api.GetClassName(hwnd1) == "tooltips_class32") {
19+
if (api.IsWindowVisible(hwnd1)) {
20+
hwnd = hwnd1;
21+
break;
4122
}
4223
}
4324
}
25+
if (hwnd) {
26+
const ptc = pt.Clone();
27+
api.ScreenToClient(Sync.FixWin11Preview.hList, ptc);
28+
if (!PtInRect(Sync.FixWin11Preview.rc, ptc)) {
29+
api.ShowWindow(hwnd, SW_HIDE);
30+
}
31+
}
4432
}
4533
});

0 commit comments

Comments
 (0)