delphi哪个版本好用 用Delphi 6编程实现自动标注汉语拼音(2)

电脑杂谈  发布时间:2018-02-21 17:53:34  来源:网络整理

public

用Delphi 6编程实现自动标注汉语拼音

iHandleCount: integer;

pList : array[1..20] of HKL;

szImeName : array[0..254] of char;

II : integer;

end;

const

pych: array[1..6,1..5] of string[2]=

(('ā', 'á','ǎ','à','a'),('ō', 'ó','ǒ','ò','o'),

('ē', 'é','ě','è','e'),('ī', 'í','ǐ','ì','i'),

delphi 模块化开发_delphi哪个版本好用_delphi 包的概念

('ū', 'ú','ǔ','ù','u'),('ǖ', 'ǘ','ǚ','ǜ','ü'));

var

Form1: TForm1;

implementation

{$R *.DFM}

procedure (Sender: TObject);

var

i: integer;

用Delphi 6编程实现自动标注汉语拼音

begin

II := 0;

//retrieves the keyboard layout handles corresponding to the current set of input locales in the system.

iHandleCount := GetKeyboardLayoutList(20, pList);

for i := 1 to iHandleCount do

begin

if ImmEscape(pList[i], 0, IME_ESC_IME_NAME, @szImeName) 0 then

if szImeName="微软拼音输入法" then

begin

StdCtrls, ExtCtrls, Buttons, IMM;

type

TForm1 = class(TForm)

OpenDialog1: TOpenDialog;


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-87463-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 关羽云长
      关羽云长

      人均GDP和收入看起来你好富啊

    热点图片
    拼命载入中...