H
hying95
Unregistered / Unconfirmed
GUEST, unregistred user!
在MEMO1的KeyDown事件中如果key=65-90也就是键盘输入A-Z那么就读取资源文件中的GIF图片,但如果是输入汉字时就没反应,请大家帮忙,请不要用钩了!在线等! ( 积分: 100 )<br />procedure TFrmDZ.Memo1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
var
stra: array[0..254] of char;
begin
if (key>=65) and (key<=90) then
begin
isHint:=True;
SZ:=Key;
ZM:=Chr(SZ);
loadgifres(ZM,Imag.Picture);
IF LoadString(HInstance, SZ, StrA, 254)>0 THEN
EdtZG.Text:=StrA;
end;
end;
Shift: TShiftState);
var
stra: array[0..254] of char;
begin
if (key>=65) and (key<=90) then
begin
isHint:=True;
SZ:=Key;
ZM:=Chr(SZ);
loadgifres(ZM,Imag.Picture);
IF LoadString(HInstance, SZ, StrA, 254)>0 THEN
EdtZG.Text:=StrA;
end;
end;