[ttssh2-commit] [9412] Setup directory ダイアログに ok と help ボタンを追加

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 9月 12日 (日) 01:12:44 JST


Revision: 9412
          https://osdn.net/projects/ttssh2/scm/svn/commits/9412
Author:   zmatsuo
Date:     2021-09-12 01:12:44 +0900 (Sun, 12 Sep 2021)
Log Message:
-----------
Setup directory ダイアログに ok と help ボタンを追加

Modified Paths:
--------------
    trunk/teraterm/teraterm/setupdirdlg.cpp
    trunk/teraterm/teraterm/ttermpro.rc

-------------- next part --------------
Modified: trunk/teraterm/teraterm/setupdirdlg.cpp
===================================================================
--- trunk/teraterm/teraterm/setupdirdlg.cpp	2021-09-10 15:51:37 UTC (rev 9411)
+++ trunk/teraterm/teraterm/setupdirdlg.cpp	2021-09-11 16:12:44 UTC (rev 9412)
@@ -53,6 +53,7 @@
 #include "compat_win.h"
 #include "codeconv.h"
 #include "asprintf.h"
+#include "helpid.h"
 
 #include "setupdirdlg.h"
 
@@ -522,6 +523,15 @@
 			button_pressed = TRUE;
 			break;
 
+		case IDHELP:
+			OpenHelp(HH_HELP_CONTEXT, HlpMenuSetupDir, pts->UILanguageFile);
+			break;
+
+		case IDOK:
+			TTEndDialog(hDlgWnd, IDOK);
+			return TRUE;
+			break;
+
 		case IDCANCEL:
 			TTEndDialog(hDlgWnd, IDCANCEL);
 			return TRUE;

Modified: trunk/teraterm/teraterm/ttermpro.rc
===================================================================
--- trunk/teraterm/teraterm/ttermpro.rc	2021-09-10 15:51:37 UTC (rev 9411)
+++ trunk/teraterm/teraterm/ttermpro.rc	2021-09-11 16:12:44 UTC (rev 9412)
@@ -313,35 +313,37 @@
     EDITTEXT        IDC_EDIT,5,5,150,112,ES_MULTILINE | ES_AUTOHSCROLL | ES_WANTRETURN | WS_VSCROLL | WS_HSCROLL
 END
 
-IDD_SETUP_DIR_DIALOG DIALOGEX 0, 0, 370, 211
+IDD_SETUP_DIR_DIALOG DIALOGEX 0, 0, 371, 224
 STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
 CAPTION "Setup directory"
 FONT 8, "Tahoma", 0, 0, 0x0
 BEGIN
-    GROUPBOX        "Tera Term Configuration File",IDC_INI_SETUPDIR_GROUP,7,7,355,46
+    GROUPBOX        "Tera Term Configuration File",IDC_INI_SETUPDIR_GROUP,7,7,356,46
     EDITTEXT        IDC_INI_SETUPDIR_EDIT,13,17,253,14,ES_AUTOHSCROLL | ES_READONLY
     PUSHBUTTON      "...",IDC_INI_SETUPDIR_BUTTON,278,17,26,14
     PUSHBUTTON      "Open File",IDC_INI_SETUPDIR_BUTTON_FILE,312,17,40,14
     LTEXT           "Virtual Store",IDC_INI_SETUPDIR_STATIC_VSTORE,15,37,45,8
     EDITTEXT        IDC_INI_SETUPDIR_EDIT_VSTORE,68,35,251,14,ES_AUTOHSCROLL | ES_READONLY
-    GROUPBOX        "Keyboard Configuration File",IDC_KEYCNF_SETUPDIR_GROUP,7,55,355,46
+    GROUPBOX        "Keyboard Configuration File",IDC_KEYCNF_SETUPDIR_GROUP,7,55,356,46
     EDITTEXT        IDC_KEYCNF_SETUPDIR_EDIT,13,65,253,14,ES_AUTOHSCROLL | ES_READONLY
     PUSHBUTTON      "...",IDC_KEYCNF_SETUPDIR_BUTTON,278,65,26,14
     PUSHBUTTON      "Open File",IDC_KEYCNF_SETUPDIR_BUTTON_FILE,312,65,40,14
     LTEXT           "Virtual Store",IDC_KEYCNF_SETUPDIR_STATIC_VSTORE,15,85,45,8
     EDITTEXT        IDC_KEYCNF_SETUPDIR_EDIT_VSTORE,68,83,251,14,ES_AUTOHSCROLL | ES_READONLY
-    GROUPBOX        "CygTerm Configuration File",IDC_CYGTERM_SETUPDIR_GROUP,7,103,355,46
+    GROUPBOX        "CygTerm Configuration File",IDC_CYGTERM_SETUPDIR_GROUP,7,103,356,46
     EDITTEXT        IDC_CYGTERM_SETUPDIR_EDIT,13,113,253,14,ES_AUTOHSCROLL | ES_READONLY
     PUSHBUTTON      "...",IDC_CYGTERM_SETUPDIR_BUTTON,278,113,26,14
     PUSHBUTTON      "Open File",IDC_CYGTERM_SETUPDIR_BUTTON_FILE,312,113,39,14
     LTEXT           "Virtual Store",IDC_CYGTERM_SETUPDIR_STATIC_VSTORE,15,133,45,8
     EDITTEXT        IDC_CYGTERM_SETUPDIR_EDIT_VSTORE,68,131,251,14,ES_AUTOHSCROLL | ES_READONLY
-    GROUPBOX        "SSH known_hosts File",IDC_SSH_SETUPDIR_GROUP,7,151,355,46
+    GROUPBOX        "SSH known_hosts File",IDC_SSH_SETUPDIR_GROUP,7,151,356,46
     EDITTEXT        IDC_SSH_SETUPDIR_EDIT,13,161,253,14,ES_AUTOHSCROLL | ES_READONLY
     PUSHBUTTON      "...",IDC_SSH_SETUPDIR_BUTTON,278,161,26,14
     PUSHBUTTON      "Open File",IDC_SSH_SETUPDIR_BUTTON_FILE,312,161,38,14
     LTEXT           "Virtual Store",IDC_SSH_SETUPDIR_STATIC_VSTORE,15,181,45,8
     EDITTEXT        IDC_SSH_SETUPDIR_EDIT_VSTORE,68,179,251,14,ES_AUTOHSCROLL | ES_READONLY
+    PUSHBUTTON      "Help",IDHELP,313,203,50,14
+    DEFPUSHBUTTON   "OK",IDOK,256,203,50,14
 END
 
 IDD_SENDFILEDLG DIALOGEX 0, 0, 271, 188
@@ -459,9 +461,9 @@
     IDD_SETUP_DIR_DIALOG, DIALOG
     BEGIN
         LEFTMARGIN, 7
-        RIGHTMARGIN, 362
+        RIGHTMARGIN, 363
         TOPMARGIN, 7
-        BOTTOMMARGIN, 204
+        BOTTOMMARGIN, 217
     END
 
     IDD_SENDFILEDLG, DIALOG


ttssh2-commit メーリングリストの案内
Back to archive index