mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 13:24:42 +02:00
[IN_PROGRESS] Add multiline and vertical capacity for tab bar.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@114 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
84487e2f20
commit
dfb0f2dadb
@ -5743,6 +5743,7 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
|||||||
TabBarPlus::setDbClk2Close((tabBarStatus & TAB_DBCLK2CLOSE) != 0);
|
TabBarPlus::setDbClk2Close((tabBarStatus & TAB_DBCLK2CLOSE) != 0);
|
||||||
TabBarPlus::setVertical((tabBarStatus & TAB_VERTICAL) != 0);
|
TabBarPlus::setVertical((tabBarStatus & TAB_VERTICAL) != 0);
|
||||||
TabBarPlus::setMultiLine((tabBarStatus & TAB_MULTILINE) != 0);
|
TabBarPlus::setMultiLine((tabBarStatus & TAB_MULTILINE) != 0);
|
||||||
|
//TabBarPlus::setNoTabBar((tabBarStatus & TAB_NOTABBAR) != 0);
|
||||||
|
|
||||||
//--Splitter Section--//
|
//--Splitter Section--//
|
||||||
bool isVertical = (nppGUI._splitterPos == POS_VERTICAL);
|
bool isVertical = (nppGUI._splitterPos == POS_VERTICAL);
|
||||||
|
@ -74,16 +74,18 @@ public :
|
|||||||
};
|
};
|
||||||
|
|
||||||
virtual void reSizeTo(RECT & rc) {
|
virtual void reSizeTo(RECT & rc) {
|
||||||
if (!_hideTabBarStatus)
|
if (_hideTabBarStatus)
|
||||||
{
|
{
|
||||||
//::ShowWindow(getHSelf(), SW_SHOW);
|
RECT rcTmp = rc;
|
||||||
TabBar::reSizeTo(rc);
|
|
||||||
//rc.top += 2;
|
|
||||||
//rc.right -= 4;
|
|
||||||
//rc.bottom -= 26;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
TabBar::reSizeTo(rcTmp);
|
||||||
_pView->reSizeTo(rc);
|
_pView->reSizeTo(rc);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TabBar::reSizeTo(rc);
|
||||||
|
_pView->reSizeTo(rc);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private :
|
private :
|
||||||
|
@ -143,6 +143,8 @@ BOOL CALLBACK BarsDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam)
|
|||||||
::SendDlgItemMessage(_hSelf, IDC_CHECK_DRAWINACTIVE, BM_SETCHECK, tabBarStatus & TAB_DRAWINACTIVETAB, 0);
|
::SendDlgItemMessage(_hSelf, IDC_CHECK_DRAWINACTIVE, BM_SETCHECK, tabBarStatus & TAB_DRAWINACTIVETAB, 0);
|
||||||
::SendDlgItemMessage(_hSelf, IDC_CHECK_ENABLETABCLOSE, BM_SETCHECK, tabBarStatus & TAB_CLOSEBUTTON, 0);
|
::SendDlgItemMessage(_hSelf, IDC_CHECK_ENABLETABCLOSE, BM_SETCHECK, tabBarStatus & TAB_CLOSEBUTTON, 0);
|
||||||
::SendDlgItemMessage(_hSelf, IDC_CHECK_DBCLICK2CLOSE, BM_SETCHECK, tabBarStatus & TAB_DBCLK2CLOSE, 0);
|
::SendDlgItemMessage(_hSelf, IDC_CHECK_DBCLICK2CLOSE, BM_SETCHECK, tabBarStatus & TAB_DBCLK2CLOSE, 0);
|
||||||
|
::SendDlgItemMessage(_hSelf, IDC_CHECK_TAB_VERTICAL, BM_SETCHECK, tabBarStatus & TAB_VERTICAL, 0);
|
||||||
|
::SendDlgItemMessage(_hSelf, IDC_CHECK_TAB_MULTILINE, BM_SETCHECK, tabBarStatus & TAB_MULTILINE, 0);
|
||||||
|
|
||||||
::SendDlgItemMessage(_hSelf, IDC_CHECK_SHOWSTATUSBAR, BM_SETCHECK, showStatus, 0);
|
::SendDlgItemMessage(_hSelf, IDC_CHECK_SHOWSTATUSBAR, BM_SETCHECK, showStatus, 0);
|
||||||
|
|
||||||
|
@ -269,7 +269,11 @@ public :
|
|||||||
_isCtrlMultiLine = b;
|
_isCtrlMultiLine = b;
|
||||||
doMultiLine();
|
doMultiLine();
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
static void setNoTabBar(bool b) {
|
||||||
|
|
||||||
|
};
|
||||||
|
*/
|
||||||
protected:
|
protected:
|
||||||
// it's the boss to decide if we do the drag N drop
|
// it's the boss to decide if we do the drag N drop
|
||||||
static bool _doDragNDrop;
|
static bool _doDragNDrop;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user