[Ttssh2-commit] [3671] ChooseFont ダイアログでスタイルのコンボボックスを無効にするのをやめ、代わりにスタイルが反映されないことを注記するようにした。

svnno****@sourc***** svnno****@sourc*****
2009年 10月 31日 (土) 22:37:50 JST


Revision: 3671
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3671
Author:   maya
Date:     2009-10-31 22:37:50 +0900 (Sat, 31 Oct 2009)

Log Message:
-----------
ChooseFont ダイアログでスタイルのコンボボックスを無効にするのをやめ、代わりにスタイルが反映されないことを注記するようにした。

Modified Paths:
--------------
    trunk/installer/release/lang/English.lng
    trunk/installer/release/lang/German.lng
    trunk/installer/release/lang/Japanese.lng
    trunk/teraterm/ttpdlg/ttdlg.c


-------------- next part --------------
Modified: trunk/installer/release/lang/English.lng
===================================================================
--- trunk/installer/release/lang/English.lng	2009-10-28 12:50:47 UTC (rev 3670)
+++ trunk/installer/release/lang/English.lng	2009-10-31 13:37:50 UTC (rev 3671)
@@ -338,6 +338,8 @@
 DLG_WIN_BLINK=Blink
 DLG_WIN_REVERSEATTR=Reverse
 
+DLG_CHOOSEFONT_STC6="Font style" is not reflect to the font setting.
+
 DLG_WINLIST_TITLE=Tera Term: Window list
 DLG_WINLIST_LABEL=&Window:
 DLG_WINLIST_OPEN=&Open

Modified: trunk/installer/release/lang/German.lng
===================================================================
--- trunk/installer/release/lang/German.lng	2009-10-28 12:50:47 UTC (rev 3670)
+++ trunk/installer/release/lang/German.lng	2009-10-31 13:37:50 UTC (rev 3671)
@@ -337,6 +337,8 @@
 DLG_WIN_BLINK=Blink
 DLG_WIN_REVERSEATTR=Reverse
 
+DLG_CHOOSEFONT_STC6="Font style" is not reflect to the font setting.
+
 DLG_WINLIST_TITLE=Window list
 DLG_WINLIST_LABEL=&Window:
 DLG_WINLIST_OPEN=&Open

Modified: trunk/installer/release/lang/Japanese.lng
===================================================================
--- trunk/installer/release/lang/Japanese.lng	2009-10-28 12:50:47 UTC (rev 3670)
+++ trunk/installer/release/lang/Japanese.lng	2009-10-31 13:37:50 UTC (rev 3671)
@@ -338,6 +338,8 @@
 DLG_WIN_BLINK=“_–Å
 DLG_WIN_REVERSEATTR=”½“]
 
+DLG_CHOOSEFONT_STC6="ƒXƒ^ƒCƒ‹" ‚̓tƒHƒ“ƒgÝ’è‚É”½‰f‚³‚ê‚Ü‚¹‚ñB
+
 DLG_WINLIST_TITLE=Tera Term: ƒEƒBƒ“ƒhƒE‚̃ŠƒXƒg
 DLG_WINLIST_LABEL=ƒEƒBƒ“ƒhƒE(&W):
 DLG_WINLIST_OPEN=ŠJ‚­(&O)

Modified: trunk/teraterm/ttpdlg/ttdlg.c
===================================================================
--- trunk/teraterm/ttpdlg/ttdlg.c	2009-10-28 12:50:47 UTC (rev 3670)
+++ trunk/teraterm/ttpdlg/ttdlg.c	2009-10-31 13:37:50 UTC (rev 3671)
@@ -3100,9 +3100,40 @@
 {
 	switch (Message) {
 		case WM_INITDIALOG:
-			EnableWindow(GetDlgItem(Dialog, cmb2), FALSE);
+		{
+			static LPCHOOSEFONT cf;
+			PTTSet ts;
+			char uimsg[MAX_UIMSG];
+
+			//EnableWindow(GetDlgItem(Dialog, cmb2), FALSE);
+			cf = (LPCHOOSEFONT)lParam;
+			ts = (PTTSet)cf->lCustData;
+			get_lang_msg("DLG_CHOOSEFONT_STC6", uimsg, sizeof(uimsg),
+			             "\"Font style\" is not reflect to the font setting.", ts->UILanguageFile);
+			SetDlgItemText(Dialog, stc6, uimsg);
+
 			SetFocus(GetDlgItem(Dialog,cmb1));
+
 			break;
+		}
+#if 0
+		case WM_COMMAND:
+			if (LOWORD(wParam) == cmb2) {
+				if (HIWORD(wParam) == CBN_SELCHANGE) {
+					// ƒtƒHƒ“ƒg‚̕ύX‚É‚æ‚é(ƒƒbƒZ[ƒW‚É‚æ‚é)ƒXƒ^ƒCƒ‹‚̕ύX‚Å‚Í
+					// cmb2 ‚©‚ç‚Ì’Ê’m‚ª—ˆ‚È‚¢
+					SendMessage(GetDlgItem(Dialog, cmb2), CB_GETCURSEL, 0, 0);
+				}
+			}
+			else if (LOWORD(wParam) == cmb1) {
+				if (HIWORD(wParam) == CBN_SELCHANGE) {
+					// ƒtƒHƒ“ƒg‚̕ύX‘O‚Ɉꎞ•Û‘¶‚³‚ꂽƒXƒ^ƒCƒ‹‚ª
+					// ‚±‚±‚𔲂¯‚½‚ ‚Ƃɉü‚߂ăZƒbƒg‚³‚ê‚Ä‚µ‚Ü‚¤‚悤‚¾
+					SendMessage(GetDlgItem(Dialog, cmb2), CB_GETCURSEL, 0, 0);
+				}
+			}
+			break;
+#endif
 	}
 	return FALSE;
 }
@@ -3122,6 +3153,7 @@
 	cf.lpfnHook = (LPCFHOOKPROC)(&TFontHook);
 	cf.nFontType = REGULAR_FONTTYPE;
 	cf.hInstance = hInst;
+	cf.lCustData = (LPARAM)ts;
 	Ok = ChooseFont(&cf);
 	return Ok;
 }



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