怎么在form上用f1,f2等键指定某一动作!!!
用过formkeydown
比如
if key=112 then
radiobutton1.Checked:=true;
if key=113 then
radiobutton2.Checked:=true;
if key=114 then
radiobutton3.Checked:=true;
但当指定动作的控件不直接在form上 而是在比如一个panel上时就没有效果
为什么??
谁帮帮我 谢谢 谢谢
用过formkeydown
比如
if key=112 then
radiobutton1.Checked:=true;
if key=113 then
radiobutton2.Checked:=true;
if key=114 then
radiobutton3.Checked:=true;
但当指定动作的控件不直接在form上 而是在比如一个panel上时就没有效果
为什么??
谁帮帮我 谢谢 谢谢
解决方案 »
- 又是ICS问题
- 求助!ExpressPrinting.System怎么打印出来的图片不是一比一的啊?怎样才能用2个文本控件达到分行效果啊?
- 如何把文本数据导入ORACLE数据库?
- 请问这个SQL语句应该怎样写??????????????????????????
- 今天和公司老总提辞职的事情!!!!
- 关于WaitCommEvent函数,请各位,指点一下,先谢了!!!
- HELP!!!!
- 请问如何象myie2那种新建一个不激活的子窗口?我新建子窗口,老是自动激活为新窗口。谢谢。
- ****支票打印,加大两数字之间的空格问题!!!!
- Delphi...路径...20分
- 按钮的那种立体感能去掉吗?变颜色行吗?
- 哪里有Delphi 6 Update Pack #2 (including Personal Edition)?
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key = VK_F1 then
begin
edit1.Text := 'f1'; //edit1在form上
edit2.Text := 'f1'; //edit2在panel上
end;
end;
是窗体上其他控件先接收
上,没有问题。