[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
pull/343/head^2
donho 2008-01-23 00:26:07 +00:00
parent 84487e2f20
commit dfb0f2dadb
4 changed files with 18 additions and 9 deletions

View File

@ -5743,6 +5743,7 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
TabBarPlus::setDbClk2Close((tabBarStatus & TAB_DBCLK2CLOSE) != 0);
TabBarPlus::setVertical((tabBarStatus & TAB_VERTICAL) != 0);
TabBarPlus::setMultiLine((tabBarStatus & TAB_MULTILINE) != 0);
//TabBarPlus::setNoTabBar((tabBarStatus & TAB_NOTABBAR) != 0);
//--Splitter Section--//
bool isVertical = (nppGUI._splitterPos == POS_VERTICAL);

View File

@ -74,16 +74,18 @@ public :
};
virtual void reSizeTo(RECT & rc) {
if (!_hideTabBarStatus)
if (_hideTabBarStatus)
{
//::ShowWindow(getHSelf(), SW_SHOW);
TabBar::reSizeTo(rc);
//rc.top += 2;
//rc.right -= 4;
//rc.bottom -= 26;
RECT rcTmp = rc;
TabBar::reSizeTo(rcTmp);
_pView->reSizeTo(rc);
}
else
{
TabBar::reSizeTo(rc);
_pView->reSizeTo(rc);
}
_pView->reSizeTo(rc);
};
private :

View File

@ -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_ENABLETABCLOSE, BM_SETCHECK, tabBarStatus & TAB_CLOSEBUTTON, 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);

View File

@ -269,7 +269,11 @@ public :
_isCtrlMultiLine = b;
doMultiLine();
};
/*
static void setNoTabBar(bool b) {
};
*/
protected:
// it's the boss to decide if we do the drag N drop
static bool _doDragNDrop;