Hi,
I know that tabs can be closed on middle click in SciTE, but on laptops it is
much easier to use left double click. I located in SciTEWin.cxx the following
piece of code:
case WM_PARENTNOTIFY:
if (LOWORD(wParam) == WM_MBUTTONDOWN) {
// Check if on tab bar
Point pt = Point::FromLong(lParam);
TCHITTESTINFO thti;
thti.pt.x = pt.x;
thti.pt.y = pt.y;
::MapWindowPoints(MainHWND(), reinterpret_cast(wTabBar.GetID()),
&thti.pt, 1);
thti.flags = 0;
int tab = ::SendMessage(reinterpret_cast(wTabBar.GetID()), TCM_HITTEST,
(WPARAM)0, (LPARAM)&thti);
if (tab >= 0) {
CloseTab(tab);
}
} else if (LOWORD(wParam) == WM_MBUTTONUP) {
WindowSetFocus(wEditor);
}
break;
what I expected was that changing LOWORD(wParam) == WM_MBUTTONDOWN into
LOWORD(wParam) == WM_LBUTTONDBLCLK should enable left double click closing
tabs, but it doesn't work. How can this expected feature be implemented then?
Also, it would be nice to open a new tab by left double click on the tabbar but
not on existing tabs. Thanks.
[EMAIL PROTECTED]
2007-06-21
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest