git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@137 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
dbd9afeaca
commit
4cce0e45f7
|
@ -3417,6 +3417,7 @@ void Notepad_plus::command(int id)
|
|||
|
||||
case IDM_SETTING_AUTOCNBCHAR:
|
||||
{
|
||||
const int NB_MIN_CHAR = 1;
|
||||
const int NB_MAX_CHAR = 9;
|
||||
|
||||
ValueDlg valDlg;
|
||||
|
@ -3431,6 +3432,9 @@ void Notepad_plus::command(int id)
|
|||
{
|
||||
if (size > NB_MAX_CHAR)
|
||||
size = NB_MAX_CHAR;
|
||||
else if (size < NB_MIN_CHAR)
|
||||
size = NB_MIN_CHAR;
|
||||
|
||||
nppGUI._autocFromLen = size;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -220,4 +220,5 @@ BEGIN
|
|||
RTEXT "From",IDD_AUTOC_STATIC_FROM,208,114,47,8
|
||||
CTEXT "1",IDD_AUTOC_STATIC_N,259,114,8,8
|
||||
LTEXT "th characters",IDD_AUTOC_STATIC_CHAR,273,114,57,8
|
||||
LTEXT "Valid value : 1 - 9",IDD_AUTOC_STATIC_NOTE,238,124,93,8
|
||||
END
|
||||
|
|
|
@ -1328,6 +1328,7 @@ BOOL CALLBACK BackupDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam)
|
|||
::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_FROM), FALSE);
|
||||
::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_N), FALSE);
|
||||
::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_CHAR), FALSE);
|
||||
::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_NOTE), FALSE);
|
||||
}
|
||||
updateBackupGUI();
|
||||
return TRUE;
|
||||
|
@ -1403,6 +1404,7 @@ BOOL CALLBACK BackupDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam)
|
|||
::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_FROM), isEnableAutoC);
|
||||
::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_N), isEnableAutoC);
|
||||
::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_CHAR), isEnableAutoC);
|
||||
::EnableWindow(::GetDlgItem(_hSelf, IDD_AUTOC_STATIC_NOTE), isEnableAutoC);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -173,3 +173,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|||
#define IDD_AUTOC_STATIC_FROM (IDD_PREFERENCE_BACKUP_BOX + 11)
|
||||
#define IDD_AUTOC_STATIC_N (IDD_PREFERENCE_BACKUP_BOX + 12)
|
||||
#define IDD_AUTOC_STATIC_CHAR (IDD_PREFERENCE_BACKUP_BOX + 13)
|
||||
#define IDD_AUTOC_STATIC_NOTE (IDD_PREFERENCE_BACKUP_BOX + 14)
|
||||
|
|
Loading…
Reference in New Issue