J
jklee
Unregistered / Unconfirmed
GUEST, unregistred user!
谁能告诉我以下代码的作用及意思:
procedure TForm.RadioButton1KeyDown(Sender: TObject;
var Key: Word;
Shift: TShiftState);
begin
if key=38 then
begin
key:=0;
SelectNext((Sender as TEdit),false,true);
end;
if(key=13)or(key=40)then
begin
key:=0;
perform(cm_dialogkey,vk_tab,0);
end;
end;
procedure TForm.RadioButton1KeyDown(Sender: TObject;
var Key: Word;
Shift: TShiftState);
begin
if key=38 then
begin
key:=0;
SelectNext((Sender as TEdit),false,true);
end;
if(key=13)or(key=40)then
begin
key:=0;
perform(cm_dialogkey,vk_tab,0);
end;
end;