[Ttssh2-commit] [5578] バージョン情報のEdit Controlに、等幅フォントを指定できるようにした。

svnno****@sourc***** svnno****@sourc*****
2014年 5月 5日 (月) 00:49:49 JST


Revision: 5578
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5578
Author:   yutakapon
Date:     2014-05-05 00:49:47 +0900 (Mon, 05 May 2014)
Log Message:
-----------
バージョン情報のEdit Controlに、等幅フォントを指定できるようにした。
また、横スクロールバーを追加した。

Modified Paths:
--------------
    trunk/installer/release/lang/English.lng
    trunk/installer/release/lang/French.lng
    trunk/installer/release/lang/German.lng
    trunk/installer/release/lang/Japanese.lng
    trunk/installer/release/lang/Korean.lng
    trunk/installer/release/lang/Russian.lng
    trunk/installer/release/lang/Simplified Chinese.lng
    trunk/ttssh2/ttxssh/ttxssh.c
    trunk/ttssh2/ttxssh/ttxssh.rc

-------------- next part --------------
Modified: trunk/installer/release/lang/English.lng
===================================================================
--- trunk/installer/release/lang/English.lng	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/installer/release/lang/English.lng	2014-05-04 15:49:47 UTC (rev 5578)
@@ -485,6 +485,7 @@
 ; font
 DLG_TAHOMA_FONT=Tahoma,8,0
 DLG_SYSTEM_FONT=System,14,0
+DLG_ABOUT_FONT=Courier New,8,0
 
 ; menu
 MENU_ABOUT=About &TTSSH...

Modified: trunk/installer/release/lang/French.lng
===================================================================
--- trunk/installer/release/lang/French.lng	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/installer/release/lang/French.lng	2014-05-04 15:49:47 UTC (rev 5578)
@@ -486,6 +486,7 @@
 ; font
 DLG_TAHOMA_FONT=Tahoma,8,0
 DLG_SYSTEM_FONT=System,14,0
+DLG_ABOUT_FONT=Courier New,8,0
 
 ; menu
 MENU_ABOUT=A propos de &TTSSH...

Modified: trunk/installer/release/lang/German.lng
===================================================================
--- trunk/installer/release/lang/German.lng	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/installer/release/lang/German.lng	2014-05-04 15:49:47 UTC (rev 5578)
@@ -485,6 +485,7 @@
 ; font
 DLG_TAHOMA_FONT=Tahoma,8,0
 DLG_SYSTEM_FONT=System,14,0
+DLG_ABOUT_FONT=Courier New,8,0
 
 ; menu
 MENU_ABOUT=&\xDCber TTSSH

Modified: trunk/installer/release/lang/Japanese.lng
===================================================================
--- trunk/installer/release/lang/Japanese.lng	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/installer/release/lang/Japanese.lng	2014-05-04 15:49:47 UTC (rev 5578)
@@ -484,6 +484,7 @@
 ; font
 DLG_TAHOMA_FONT=\x82l\x82r \x82o\x83S\x83V\x83b\x83N,9,128
 DLG_SYSTEM_FONT=\x82l\x82r \x82o\x83S\x83V\x83b\x83N,12,128
+DLG_ABOUT_FONT=Courier New,8,0
 
 ; menu
 MENU_ABOUT=&TTSSH\x82ɂ‚\xA2\x82\xC4...

Modified: trunk/installer/release/lang/Korean.lng
===================================================================
--- trunk/installer/release/lang/Korean.lng	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/installer/release/lang/Korean.lng	2014-05-04 15:49:47 UTC (rev 5578)
@@ -486,6 +486,7 @@
 ; font
 DLG_SYSTEM_FONT=\xB1\xBC\xB8\xB2,10,128
 DLG_TAHOMA_FONT=\xB5\xB8\xBF\xF2,9,128
+DLG_ABOUT_FONT=Courier New,8,0
 
 ; menu
 MENU_ABOUT=TTSSH\xBF\xA1 \xB4\xEB\xC7Ͽ\xA9...(&T)

Modified: trunk/installer/release/lang/Russian.lng
===================================================================
--- trunk/installer/release/lang/Russian.lng	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/installer/release/lang/Russian.lng	2014-05-04 15:49:47 UTC (rev 5578)
@@ -485,6 +485,7 @@
 ; font
 DLG_TAHOMA_FONT=Tahoma,8,0
 DLG_SYSTEM_FONT=System,14,0
+DLG_ABOUT_FONT=Courier New,8,0
 
 ; menu
 MENU_ABOUT=&\xC8\xED\xF4\xEE\xF0\xEC\xE0\xF6\xE8\xFF \xEE TTSSH...

Modified: trunk/installer/release/lang/Simplified Chinese.lng
===================================================================
--- trunk/installer/release/lang/Simplified Chinese.lng	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/installer/release/lang/Simplified Chinese.lng	2014-05-04 15:49:47 UTC (rev 5578)
@@ -486,6 +486,7 @@
 ; font
 DLG_SYSTEM_FONT=΢\xC8\xED\xD1ź\xDA,10,0
 DLG_TAHOMA_FONT=΢\xC8\xED\xD1ź\xDA,8,0
+DLG_ABOUT_FONT=Courier New,8,0
 
 ; menu
 MENU_ABOUT=\xB9\xD8\xD3\xDA &TTSSH...

Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2014-05-04 15:49:47 UTC (rev 5578)
@@ -96,6 +96,7 @@
 
 static HFONT DlgHostFont;
 static HFONT DlgAboutFont;
+static HFONT DlgAboutTextFont;
 static HFONT DlgSetupFont;
 static HFONT DlgKeygenFont;
 
@@ -2497,13 +2498,20 @@
 			SendDlgItemMessage(dlg, IDC_WEBSITES, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0));
 			SendDlgItemMessage(dlg, IDC_CRYPTOGRAPHY, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0));
 			SendDlgItemMessage(dlg, IDC_CREDIT, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0));
-			SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0));
 			SendDlgItemMessage(dlg, IDOK, WM_SETFONT, (WPARAM)DlgAboutFont, MAKELPARAM(TRUE,0));
 		}
 		else {
 			DlgAboutFont = NULL;
 		}
 
+		// Edit control\x82͓\x99\x95\x9D\x83t\x83H\x83\x93\x83g\x82ŕ\\x8E\xA6\x82\xB5\x82\xBD\x82\xA2\x82̂ŁA\x95ʐݒ\xE8\x8F\xEE\x95񂩂\xE7\x83t\x83H\x83\x93\x83g\x82\xF0\x83Z\x83b\x83g\x82\xB7\x82\xE9\x81B
+		// (2014.5.5. yutaka)
+		if (UTIL_get_lang_font("DLG_ABOUT_FONT", dlg, &logfont, &DlgAboutTextFont, pvar)) {
+			SendDlgItemMessage(dlg, IDC_ABOUTTEXT, WM_SETFONT, (WPARAM)DlgAboutTextFont, MAKELPARAM(TRUE,0));
+		} else {
+			DlgAboutTextFont = NULL;
+		}
+
 		// \x83A\x83C\x83R\x83\x93\x82𓮓I\x82ɃZ\x83b\x83g
 		{
 			int fuLoad = LR_DEFAULTCOLOR;
@@ -2533,6 +2541,9 @@
 			if (DlgAboutFont != NULL) {
 				DeleteObject(DlgAboutFont);
 			}
+			if (DlgAboutTextFont != NULL) {
+				DeleteObject(DlgAboutTextFont);
+			}
 			return TRUE;
 		case IDCANCEL:			/* there isn't a cancel button, but other Windows
 								   UI things can send this message */
@@ -2540,6 +2551,9 @@
 			if (DlgAboutFont != NULL) {
 				DeleteObject(DlgAboutFont);
 			}
+			if (DlgAboutTextFont != NULL) {
+				DeleteObject(DlgAboutTextFont);
+			}
 			return TRUE;
 		}
 		break;

Modified: trunk/ttssh2/ttxssh/ttxssh.rc
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.rc	2014-05-01 14:23:06 UTC (rev 5577)
+++ trunk/ttssh2/ttxssh/ttxssh.rc	2014-05-04 15:49:47 UTC (rev 5578)
@@ -87,7 +87,7 @@
     LTEXT           "Tera Term Project:     http://ttssh2.sourceforge.jp/",IDC_WEBSITES,6,99,248,13,SS_SUNKEN
     LTEXT           "THIS EXTENSION INCORPORATES STRONG CRYPTOGRAPHY. POSESSION, USE, AND/OR EXPORT OF THIS EXTENSION MAY BE ILLEGAL IN YOUR COUNTRY.",IDC_CRYPTOGRAPHY,6,116,248,26
     LTEXT           "This extension uses OpenSSH code by OpenBSD Project. Thanks also to Ian Goldberg for his Pilot SSH code, which was a very handy reference. Special thanks to Takashi Teranishi for his cooperation.",IDC_CREDIT,6,140,248,27
-    EDITTEXT        IDC_ABOUTTEXT,6,171,248,87,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL
+    EDITTEXT        IDC_ABOUTTEXT,6,171,248,87,ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL | WS_HSCROLL
     DEFPUSHBUTTON   "OK",IDOK,106,263,50,14
 END
 



Ttssh2-commit メーリングリストの案内