parent
7d5516e0a8
commit
70660eb608
|
@ -1634,13 +1634,20 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
|||
_mainEditView.execute(SCI_SETCARETWIDTH, nppGUI._caretWidth);
|
||||
_subEditView.execute(SCI_SETCARETWIDTH, nppGUI._caretWidth);
|
||||
}
|
||||
else
|
||||
else if (nppGUI._caretWidth == 4)
|
||||
{
|
||||
_mainEditView.execute(SCI_SETCARETWIDTH, 1);
|
||||
_subEditView.execute(SCI_SETCARETWIDTH, 1);
|
||||
_mainEditView.execute(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK);
|
||||
_subEditView.execute(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK);
|
||||
}
|
||||
else // nppGUI._caretWidth == 5
|
||||
{
|
||||
_mainEditView.execute(SCI_SETCARETWIDTH, 1);
|
||||
_subEditView.execute(SCI_SETCARETWIDTH, 1);
|
||||
_mainEditView.execute(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK | CARETSTYLE_BLOCK_AFTER);
|
||||
_subEditView.execute(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK | CARETSTYLE_BLOCK_AFTER);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -789,7 +789,7 @@ intptr_t CALLBACK EditingSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
|
|||
::SendDlgItemMessage(_hSelf, IDC_WIDTH_COMBO, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(TEXT("2")));
|
||||
::SendDlgItemMessage(_hSelf, IDC_WIDTH_COMBO, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(TEXT("3")));
|
||||
::SendDlgItemMessage(_hSelf, IDC_WIDTH_COMBO, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(TEXT("Block")));
|
||||
|
||||
::SendDlgItemMessage(_hSelf, IDC_WIDTH_COMBO, CB_ADDSTRING, 0, reinterpret_cast<LPARAM>(TEXT("Block After")));
|
||||
|
||||
::SendMessage(::GetDlgItem(_hSelf, IDC_WIDTH_COMBO), CB_SETCURSEL, nppGUI._caretWidth, 0);
|
||||
::SendDlgItemMessage(_hSelf, IDC_CHECK_FOLDINGTOGGLE, BM_SETCHECK, nppGUI._enableFoldCmdToggable, 0);
|
||||
|
|
Loading…
Reference in New Issue