Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttpmacro : VT window のテキスト領域の位置、サイズ、最小化状態を取得する getttpos コマンドの追加 #234 #269

Merged
merged 13 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit Hold shift + click to select a range
d0269f6
ttpmacro : getttposコマンドを追加した #234
hkanou Aug 3, 2024
2fb6c3d
ttpmacro : ヘルプファイルのコンテキストIDの不整合を修正した #213
hkanou Aug 3, 2024
53aadcb
ttpmacro : getttposのヘルプファイルを追加 #234
hkanou Aug 3, 2024
4a0564d
ttpmacro : getttpos ウィンドウ領域の位置やサイズも取得するよう修正 #234
hkanou Aug 9, 2024
d804afa
TTMessageBoxW : メッセージボックスの表示位置を画面中央から親ウィンドウの中央に変更した #234
hkanou Aug 9, 2024
cab21c9
scp実行時に表示されるメッセージボックスの表示位置をVT windowの中央に変更した #234
hkanou Aug 9, 2024
1bb0738
MessageBoxPosParentRelativeオプションを追加、__declspec(thread)を使用しないよう修正 #234
hkanou Aug 12, 2024
3a8cf45
MACRO : MessageBoxPosParentRelativeオプションに対応 #234
hkanou Aug 12, 2024
22d4f19
MessageBoxPosParentRelativeをstruct tttsetの最後に追加するよう修正した。開発作業メモにtttset…
hkanou Aug 15, 2024
1891029
エージェント転送要求の確認ダイアログをTTMessageBoxWで表示するよう修正した。 #234
hkanou Aug 15, 2024
4e9d62b
MessageBoxPosParentRelativeのマニュアルを他ドキュメントと整合するよう修正した。 #234
hkanou Aug 15, 2024
e1bdc9b
Merge remote-tracking branch 'remotes/upstream/main' into hkanou_ttpm…
hkanou Aug 15, 2024
d6a0fb3
build_with_cmake.mdのコードブロックが<pre><code>に変換されるよう修正した。 #234
hkanou Aug 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MessageBoxPosParentRelativeをstruct tttsetの最後に追加するよう修正した。開発作業メモにtttset…
…構造体修正時の注意書きを加筆した。<br />を<br>に修正した。 #234
  • Loading branch information
hkanou committed Aug 15, 2024
commit 22d4f19e02c4cbb000645c824ba89018da8612b0
51 changes: 27 additions & 24 deletions doc/en/html/reference/develop-memo.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2 id="ini-entry">Add entry to TERATERM.INI</h2>
<h3>Entry name</h3>

<p>
Unfortunately, the confusing entries such as EnableFoo... and DisableBar... are included.<br />
Unfortunately, the confusing entries such as EnableFoo... and DisableBar... are included.<br>
It recommends that the new name like as Baz....
</p>

Expand All @@ -37,23 +37,26 @@ <h3>Changes</h3>
<ul>
<li>source code
<ul>
<li>read/write INI file<br />
<li>read/write INI file<br>
teraterm\ttpset\ttset.c</li>
<li>struct tttset<br />
<li>struct tttset<br>
teraterm\common\tttypes.h</li>
To make a plugin work in both Tera Term 4 (TT4) and Tera Term 5 (TT5), it is necessary to ensure compatibility with the structure of TT4.<br>
Therefore, new members should be added at the end.<br>
Similarly, any members that are no longer needed should not be deleted but renamed to reserve_XXX and kept.</li>
</ul>
</li>
<li>Document
<ul>
<li>All items of Tera Term setup file<br />
<li>All items of Tera Term setup file<br>
setup/teraterm-ini.html</li>
<li>help for setup dialog (when UI for change is present in a dialog)<br />
<li>help for setup dialog (when UI for change is present in a dialog)<br>
dialog page under menu</li>
<li>help for setup item (when UI for change is not present in a dialog)<br />
<li>help for setup item (when UI for change is not present in a dialog)<br>
category page under setup</li>
</ul>
</li>
<li>Default INI file<br />
<li>Default INI file<br>
installer\release\TERATERM.INI</li>
</ul>

Expand All @@ -63,10 +66,10 @@ <h2 id="i18n">Support i18n message</h2>
<h3>Add new i18n message</h3>

<ul>
<li>Source code<br />
<li>Source code<br>
Read langage file</li>
<li>If a message is on dialog, put English message as default text</li>
<li>Modify language file<br />
<li>Modify language file<br>
Modify files under installer/release/lang_utf8 folder.
<ul>
<li>English.lng (English)
Expand Down Expand Up @@ -113,28 +116,28 @@ <h2 id="add-macro-command">What to do when new macro command is added?</h2>
<ul>
<li>Coding
<ul>
<li>get a new number of command internal ID.<br />
<li>get a new number of command internal ID.<br>
... teraterm/ttmacro/ttmparse.h</li>
<li>add a if statement to below function.<br />
<li>add a if statement to below function.<br>
... CheckReservedWord@teraterm/ttmacro/ttmparse.c</li>
<li>add a caller doing the macro command.<br />
<li>add a caller doing the macro command.<br>
... ExecCmnd@teraterm/ttmacro/ttl.c</li>
<li>make a function code for the macro command.</li>
</ul>
</li>
<li>Help topic
<ul>
<li>make the command help file.<br />
<li>make the command help file.<br>
... doc/LANG/html/macro/command/hogefunc.html</li>
<li>add to command index page.<br />
<li>add to command index page.<br>
... doc/LANG/html/macro/command/index.html</li>
<li>add the file to help topic.<br />
<li>add the file to help topic.<br>
... doc/LANG/teraterm.hhc</li>
<li>get a new number of context ID in help page.<br />
The value is internal ID + 92000.<br />
<li>get a new number of context ID in help page.<br>
The value is internal ID + 92000.<br>
... teraterm/common/helpid.h</li>
<li>make the alias between context ID and calling file.<br />
Open the .hhp file by using Text Editor, added a html line in [ALIAS] tag.<br />
<li>make the alias between context ID and calling file.<br>
Open the .hhp file by using Text Editor, added a html line in [ALIAS] tag.<br>
... doc/LANG/teraterm.hhp</li>
</ul>
</li>
Expand Down Expand Up @@ -175,7 +178,7 @@ <h2 id="menu-id">Naming rule to add menu ID</h2>
<h2 id="icon">Icon</h2>

<p>
Icon file includes 4bit 32px and 16px images, 32bit 256px, 48px, 32px and 16px images.<br />
Icon file includes 4bit 32px and 16px images, 32bit 256px, 48px, 32px and 16px images.<br>
Each icon files include following kind images.
</p>

Expand Down Expand Up @@ -306,13 +309,13 @@ <h2 id="icon">Icon</h2>
</table>

<p>
The store order of image files in icon file is "bit depth ASC", "pixel size DESC."<br />
The store order of image files in icon file is "bit depth ASC", "pixel size DESC."<br>
Otherwise, when a program load an icon image without specifying pixel size for get maximum size image, API returns first image.
</p>

<p>
Icon file include 4-bit images.<br />
Windows NT 4.0 supports only 4-bit icon. And notification area icon on Windows 2000 supports only 4-bit icon.<br />
Icon file include 4-bit images.<br>
Windows NT 4.0 supports only 4-bit icon. And notification area icon on Windows 2000 supports only 4-bit icon.<br>
4-bit color palette is followings:
</p>

Expand Down Expand Up @@ -550,7 +553,7 @@ <h3>Files</h3>
</li>
<li>Under add/manual folder of TeraTermProject/update_website repository
<ul>
<li>License files for web site is managed in TeraTermProject/update_website repository.<br />
<li>License files for web site is managed in TeraTermProject/update_website repository.<br>
Replace a license file when it is cahnged.</li>
</ul>
</li>
Expand Down
53 changes: 28 additions & 25 deletions doc/ja/html/reference/develop-memo.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<h3>���ږ�</h3>

<p>
���ł� EnableFoo... �� DisableBar... �����݂��Ă��܂��Ă��邪�A�������₷���B<br />
���ł� EnableFoo... �� DisableBar... �����݂��Ă��܂��Ă��邪�A�������₷���B<br>
����� Baz... �Ƃ����`���ɂ���̂��]�܂����B
</p>

Expand All @@ -37,23 +37,26 @@
<ul>
<li>�\�[�X�R�[�h
<ul>
<li>INI �t�@�C���̓ǂݏ�������<br />
<li>INI �t�@�C���̓ǂݏ�������<br>
teraterm\ttpset\ttset.c</li>
<li>tttset �\����<br />
teraterm\common\tttypes.h</li>
<li>tttset �\����<br>
teraterm\common\tttypes.h<br>
Tera Term 4(TT4) �� Tera Term 5(TT5) �̗����Ńv���O�C���𓮍삳����ɂ� TT4 �̍\���̂ƌ݊�������������K�v������<br>
���̂��߁A�V���������o�[�͖����ɒlj�����<br>
���l�ɁA�g�p���Ȃ��Ȃ��������o�[�͍폜���� reserve_XXX �Ƀ��l�[�����Ďc���Ă���</li>
</ul>
</li>
<li>�h�L�������g
<ul>
<li>Tera Term �ݒ�t�@�C���̑S���ڈꗗ<br />
<li>Tera Term �ݒ�t�@�C���̑S���ڈꗗ<br>
setup/teraterm-ini.html</li>
<li>�ݒ�_�C�A���O�̃w���v�i�_�C�A���O�ɕύX UI ������ꍇ�j<br />
<li>�ݒ�_�C�A���O�̃w���v�i�_�C�A���O�ɕύX UI ������ꍇ�j<br>
menu �ȉ��̃_�C�A���O�̃y�[�W</li>
<li>�ݒ荀�ڂ̃w���v�i�_�C�A���O�ɕύX UI ���Ȃ��ꍇ�j<br />
<li>�ݒ荀�ڂ̃w���v�i�_�C�A���O�ɕύX UI ���Ȃ��ꍇ�j<br>
setup �ȉ��̊Y�����镪�ނ̃y�[�W</li>
</ul>
</li>
<li>�f�t�H���g�� INI �t�@�C��<br />
<li>�f�t�H���g�� INI �t�@�C��<br>
installer\release\TERATERM.INI</li>
</ul>

Expand All @@ -63,10 +66,10 @@
<h3>�V�������ۉ����b�Z�[�W�ɑΉ�����</h3>

<ul>
<li>�\�[�X�R�[�h<br />
<li>�\�[�X�R�[�h<br>
����t�@�C����ǂݍ���</li>
<li>�_�C�A���O�̃��b�Z�[�W�̏ꍇ�ɂ́A���\�[�X�t�@�C���ɉp��̃��b�Z�[�W���f�t�H���g�̃e�L�X�g�Ƃ��ċL�q����</li>
<li>����t�@�C�����C������<br />
<li>����t�@�C�����C������<br>
�C������̂� installer/release/lang_utf8 �z���̌���t�@�C��
<ul>
<li>English.lng�i�p��j
Expand Down Expand Up @@ -117,28 +120,28 @@
<ul>
<li>�\�[�X�R�[�h�̏C��
<ul>
<li>�R�}���h�̓��� ID ���̔Ԃ���B�i�u���� ID�v��"helpid.h"�ɂ��g�p�����j<br />
<li>�R�}���h�̓��� ID ���̔Ԃ���B�i�u���� ID�v��"helpid.h"�ɂ��g�p�����j<br>
... teraterm/ttmacro/ttmparse.h</li>
<li>�R�}���h���𑖍����ē��� ID �ɕϊ�����B<br />
<li>�R�}���h���𑖍����ē��� ID �ɕϊ�����B<br>
... CheckReservedWord@teraterm/ttmacro/ttmparse.c</li>
<li>�R�}���h�̓��� ID ������ۂɏ���������֐����ĂԁB<br />
<li>�R�}���h�̓��� ID ������ۂɏ���������֐����ĂԁB<br>
... ExecCmnd@teraterm/ttmacro/ttl.c</li>
<li>��������֐������B</li>
</ul>
</li>
<li>�w���v(���ꂲ��)
<ul>
<li>�R�}���h�̃w���v�����B<br />
<li>�R�}���h�̃w���v�����B<br>
... doc/LANG/html/macro/command/hogefunc.html</li>
<li>�R�}���h�ꗗ�y�[�W�ɒlj�����B<br />
<li>�R�}���h�ꗗ�y�[�W�ɒlj�����B<br>
... doc/LANG/html/macro/command/index.html</li>
<li>�w���v�g�s�b�N�ɒlj�����B<br />
<li>�w���v�g�s�b�N�ɒlj�����B<br>
... doc/LANG/teraterm.hhc</li>
<li>�w���v�y�[�W�̃R���e�L�X�g ID ���̔Ԃ���B<br />
�l�� �R�}���h�̓��� ID + 92000�B<br />
<li>�w���v�y�[�W�̃R���e�L�X�g ID ���̔Ԃ���B<br>
�l�� �R�}���h�̓��� ID + 92000�B<br>
... teraterm/common/helpid.h</li>
<li>�R���e�L�X�g ID �ƌĂяo���t�@�C���̃G�C���A�X���쐬����B<br />
�e�L�X�g�G�f�B�^�Œ��ڊJ���A[ALIAS]��HTML��lj�����B<br />
<li>�R���e�L�X�g ID �ƌĂяo���t�@�C���̃G�C���A�X���쐬����B<br>
�e�L�X�g�G�f�B�^�Œ��ڊJ���A[ALIAS]��HTML��lj�����B<br>
... doc/LANG/teraterm.hhp</li>
</ul>
</li>
Expand Down Expand Up @@ -179,7 +182,7 @@
<h2 id="icon">�A�C�R��</h2>

<p>
�A�C�R���t�@�C���ɂ́A4bit �� 32px, 16px �摜�A32bit �� 256px, 48px, 32px, 16px �摜���܂߂܂��B<br />
�A�C�R���t�@�C���ɂ́A4bit �� 32px, 16px �摜�A32bit �� 256px, 48px, 32px, 16px �摜���܂߂܂��B<br>
�e�A�C�R���t�@�C���ɂ͈ȉ��̎�ނ̉摜���܂܂�Ă��܂��B
</p>

Expand Down Expand Up @@ -310,13 +313,13 @@
</table>

<p>
�A�C�R���t�@�C���ւ̉摜�̊i�[���́u�r�b�g�������������A�T�C�Y���傫�����v�Ƃ��܂��B<br />
�A�C�R���t�@�C���ւ̉摜�̊i�[���́u�r�b�g�������������A�T�C�Y���傫�����v�Ƃ��܂��B<br>
�����łȂ��ƁA�v���O�������T�C�Y���w�肹���Ɂu�ő�T�C�Y�̉摜�v���擾���悤�Ƃ����Ƃ��Ɂu�ŏ��̉摜�v�����o����邽�߂ł��B
</p>

<p>
�A�C�R���t�@�C���ɂ� 4bit �摜���܂߂܂��B<br />
Windows NT 4.0 �� 4bit �A�C�R���̂݃T�|�[�g���Ă��邽�߂ł��B�܂��AWindows 2000 �̒ʒm�̈�� 4bit �A�C�R���̂݃T�|�[�g���Ă��܂��B<br />
�A�C�R���t�@�C���ɂ� 4bit �摜���܂߂܂��B<br>
Windows NT 4.0 �� 4bit �A�C�R���̂݃T�|�[�g���Ă��邽�߂ł��B�܂��AWindows 2000 �̒ʒm�̈�� 4bit �A�C�R���̂݃T�|�[�g���Ă��܂��B<br>
4bit �A�C�R���ɂ͈ȉ��̐F���g�p�ł��܂��B
</p>

Expand Down Expand Up @@ -554,7 +557,7 @@
</li>
<li>TeraTermProject/update_website ���|�W�g���� add/manual �t�H���_�z��
<ul>
<li>Web �T�C�g�ŕ\�����郉�C�Z���X�t�@�C���� TeraTermProject/update_website ���|�W�g���ŊǗ����Ă���B<br />
<li>Web �T�C�g�ŕ\�����郉�C�Z���X�t�@�C���� TeraTermProject/update_website ���|�W�g���ŊǗ����Ă���B<br>
���C�Z���X�t�@�C���ɕύX������΍����ւ���B</li>
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion teraterm/common/tttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,6 @@ struct tttset {
COLORREF VTStrikeoutColor[2]; // SGR 9
COLORREF DummyColor[2];
WORD Beep;
WORD MessageBoxPosParentRelative;
/*------ KeybSet --------*/
WORD BSKey;
WORD DelKey;
Expand Down Expand Up @@ -617,6 +616,7 @@ struct tttset {
WORD BracketedControlOnly;
wchar_t *ViewlogEditorW;
wchar_t *ViewlogEditorArg;
WORD MessageBoxPosParentRelative;

// Experimental
BYTE ExperimentalTreeProprtySheetEnable;
Expand Down