在 form的 oncreate 或 onshow 里写
procedure TForm1.FormCreate(Sender: TObject);
var
i: integer;
begin
for i:=0 to ComponentCount-1 do
if Components is TEdit then
TEdit(Components).ImeName:= Screen.Imes[Screen.Imes.Count-1];
end;
是这意思吗
把这个ImeName放到注册表或者INI文件里保存着
procedure TForm1.FormCreate(Sender: TObject);
var
i: integer;
begin
for i:=0 to ComponentCount-1 do
if Components is TEdit then
TEdit(Components).ImeName:='ImeName';
end;