Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Bulk-change of Font size in English.dll

Aug
2,320
111
I discovered that,
with the assistance of Resource Hacker,
I can do a bulk change of the font size in English.dll

Before proceeding,
make a backup of English.dll

It's best to do this with TCMD/TCC closed,
so that the English.dll can be replaced.

First,
extract all of the Dialogs in English.dll to the file dialogs.rc

I did this from the command line;
Code:
ResourceHacker.exe -open "C:\Program Files\JPSoft\TCMD33\english.dll" -save .\dialogs.rc -action extract -mask DIALOG,, -log rh.log

Open the dialogs.rc file in TCEdit,
and do a global find/replace to change Font 8 to Font 16.

Here's the SET Dialog after the font size change.
Code:
2805 DIALOGEX 0, 0, 476, 245
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "SET"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
Font 16, "MS Shell Dlg 2", FW_NORMAL, FALSE, 1

Save dialogs.rc

Next,
load dialogs.rc into Resource Hacker.

From Resource Hacker,
press the green right arrow to compile the dialogs.rc file.

Save the file in binary format (*.res)

Next,
use Resource Hacker to open English.dll

From the Action menu,
select "Add from a Resource file"

Select the dialogs.res file that we previously compiled.

Resource Hacker will ask if you want to Skip or Overwrite.

1726680833109.webp

Choose Overwrite.

Make sure that all Dialogs are checked.

Click Import.

With all TCMD/TCC closed, save the English.dll file.

Close Resource Hacker, and launch TCMD/TCC.

Now, for example, if you do
Code:
set /=

Your dialog, and font, will be much bigger, and easier to read.

Ref: User-Defined Font Size for Dialogs
Ref: xhistory popup font?
Ref: IDE watch references

Joe
 
Back
Top