How to unify Win98 and WinXP (win2000) Font size under operating system

zhaozj2021-02-16  44

How to unify Win98 and WinXP (win2000) Font size under operating system

We often encounter some controls, such as TLABLE and TCOMBOBOX, etc. Copy the .exe file to another operating system, such as Windows2000, WinXP, etc. When we run the program, it will find that some controls are large, and the fonts displayed in TLABLE and TCOMBOBOX have become larger, directly seriously affecting the application. The overall effect of the interface, then, how do we solve this problem, let the size of the other font display of this application are unified?

First, we choose a control, such as a TLABLE control, then select the font property in the list of the attributes on the left, click on the plus number on the left, open its subview, in the font property, we set its Charset subtribution to GB2312_CHARSET, set its Name substribution to "Song", and SIZE subtribracle is set to 10, save files, recompile. Then we will re-compile the .exe application files to the machine installed with WinXP or Windows2000, run the program, we will surprise, the font shows normal.

From this, the font display problem is derived from the Font property setting. When its CHARSET sub-attribute is the default value, the program will automatically read the default settings of the current operating system, and Windows98 and WinXP (Windows2000) are displayed. The default is different, so the font size will appear different, which cannot be counted as BUG of BCB5, but the default value of the operating system is different. The same is the default value. In WinXP and Windows 2000, all displayed Chinese characters are not processed as character sets that match GB2312, and the displayed fonts are not as real as a real pure Chinese font to display.

Below, let's reiterate several sub-attributes of the font attribute of the control of the font:

Submation name value Charset GB2312_CHARSET NAME Song SIZE 10

Author: Hu Guangtao

Email / msn: huguangtao0515@hotmail.comqq: 621150

转载请注明原文地址:https://www.9cbs.com/read-26900.html

New Post(0)