Enlarge your name field size!

Rename current tab & Rename User Language name could be up to 63 characters now!
(Before this implementation the limit size is about 20 characters)

Fix #10961, fix #9849, close
pull/10969/head
Don Ho 3 years ago
parent 4a7a33f010
commit c0989d472c

@ -1782,7 +1782,7 @@ bool Notepad_plus::fileRename(BufferID id)
StringDlg strDlg;
generic_string title = _nativeLangSpeaker.getLocalizedStrFromID("tabrename-title", TEXT("Rename Current Tab"));
strDlg.init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), title.c_str(), staticName.c_str(), buf->getFileName(), 0, reservedChars.c_str(), true);
strDlg.init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), title.c_str(), staticName.c_str(), buf->getFileName(), langNameLenMax - 1, reservedChars.c_str(), true);
TCHAR *tabNewName = reinterpret_cast<TCHAR *>(strDlg.doDialog());
if (tabNewName)

@ -244,7 +244,7 @@ STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSM
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
LTEXT "STATIC :",IDC_STRING_STATIC,6,4,42,8,0,WS_EX_RIGHT
EDITTEXT IDC_STRING_EDIT,49,2,88,14
EDITTEXT IDC_STRING_EDIT,49,2,88,14,ES_AUTOHSCROLL
PUSHBUTTON "OK",IDOK,20,26,50,14
PUSHBUTTON "Cancel",IDCANCEL,87,26,50,14
END

Loading…
Cancel
Save