Skip to content

Commit c4f1182

Browse files
committed
please accept space in language text box
1 parent 0ac89d3 commit c4f1182

9 files changed

+14
-13
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ It's a special message compiler I made. See mcdx/MESSAGETABLEDX.md for details.
6060
- Make resource IDs case sensitive.
6161
- Support encoding of resource items.
6262
- Fix the abnormal termination at "Languages" dialog.
63-
* 2018.XX.YY ver.5.1.1
64-
- Don't trim the caption text. Accept space in the caption.
63+
* 2018.11.08 ver.5.1.1
64+
- Accept space in the caption text box.
65+
- Accept space in the language text box.
6566

6667
## Contact Us
6768

README.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ Question 4. What is mcdx?
6363
- Make resource IDs case sensitive.
6464
- Support encoding of resource items.
6565
- Fix the abnormal termination at "Languages" dialog.
66-
* 2018.XX.YY ver.5.1.1
67-
- Don't trim the caption text. Accept space in the caption.
66+
* 2018.11.08 ver.5.1.1
67+
- Accept space in the caption text box.
68+
- Accept space in the language text box.
6869

6970
/////////////////////////////////////////////////////
7071
// Katayama Hirofumi MZ (katahiromz) [A.N.T.]

READMEJP.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,9 @@
382382
リソース項目ごとにエンコーディングを設定できるようにした。
383383
「言語の一覧」で異常終了する不具合を修正。
384384
まとめサイトのURLを更新( https://katahiromz.web.fc2.com/re/matome/ )。
385-
2018.XX.YY ver.5.1.1
386-
キャプションテキストに空白を正しく追加できるようにした。
385+
2018.11.08 ver.5.1.1
386+
キャプションテキストボックスが空白を受け入れるようにした。
387+
言語テキストボックスが空白を受け入れるようにした。
387388

388389
/////////////////////////////////////////////////////
389390
// 片山博文MZ (katahiromz) [A.N.T.]

src/MAddBitmapDlg.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class MAddBitmapDlg : public MDialogBase
4545

4646
MAddBitmapDlg() : MDialogBase(IDD_ADDBITMAP), m_file(NULL)
4747
{
48+
m_cmb3.m_bAcceptSpace = TRUE;
4849
}
4950

5051
BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)

src/MAddCursorDlg.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class MAddCursorDlg : public MDialogBase
4747
MAddCursorDlg() : MDialogBase(IDD_ADDCURSOR), m_file(NULL)
4848
{
4949
m_hCursor = NULL;
50+
m_cmb3.m_bAcceptSpace = TRUE;
5051
}
5152

5253
~MAddCursorDlg()

src/MAddIconDlg.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class MAddIconDlg : public MDialogBase
4747
MAddIconDlg()
4848
: MDialogBase(IDD_ADDICON), m_file(NULL), m_hIcon(NULL)
4949
{
50+
m_cmb3.m_bAcceptSpace = TRUE;
5051
}
5152

5253
~MAddIconDlg()

src/MAddResDlg.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class MAddResDlg : public MDialogBase
5252

5353
MAddResDlg() : MDialogBase(IDD_ADDRES), m_type(0xFFFF), m_file(NULL)
5454
{
55+
m_cmb3.m_bAcceptSpace = TRUE;
5556
}
5657

5758
BOOL OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)

src/MCloneInNewLangDlg.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class MCloneInNewLangDlg : public MDialogBase
5050
: MDialogBase(IDD_CLONEINNEWLANG), m_entry(entry),
5151
m_type(entry->m_type), m_name(entry->m_name), m_lang(entry->m_lang)
5252
{
53+
m_cmb3.m_bAcceptSpace = TRUE;
5354
}
5455

5556
virtual INT_PTR CALLBACK

src/RisohEditor.cpp

-7
Original file line numberDiff line numberDiff line change
@@ -1781,9 +1781,6 @@ BOOL StrDlg_GetEntry(HWND hwnd, STRING_ENTRY& entry)
17811781
MString str = MWindowBase::GetDlgItemText(hwnd, cmb1);
17821782
ReplaceFullWithHalf(str);
17831783

1784-
// trim
1785-
mstr_trim(str);
1786-
17871784
if (('0' <= str[0] && str[0] <= '9') || str[0] == '-' || str[0] == '+')
17881785
{
17891786
// numeric
@@ -1838,9 +1835,6 @@ BOOL MsgDlg_GetEntry(HWND hwnd, MESSAGE_ENTRY& entry)
18381835
MString str = MWindowBase::GetDlgItemText(hwnd, cmb1);
18391836
ReplaceFullWithHalf(str);
18401837

1841-
// trim
1842-
mstr_trim(str);
1843-
18441838
if (('0' <= str[0] && str[0] <= '9') || str[0] == '-' || str[0] == '+')
18451839
{
18461840
// numeric
@@ -1858,7 +1852,6 @@ BOOL MsgDlg_GetEntry(HWND hwnd, MESSAGE_ENTRY& entry)
18581852

18591853
// get the text from EDIT control
18601854
str = MWindowBase::GetDlgItemText(hwnd, edt1);
1861-
mstr_trim(str); // trim it
18621855

18631856
// unquote if quoted
18641857
if (str[0] == L'"')

0 commit comments

Comments
 (0)