我想在mousedown里调用keydown,应该怎么做? 这样写: if button=mbleft then sgProductKeyDown(self,vk_Tab,[ ssShift ]); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样写: if button=mbleft then sgProductKeyDown(self,vk_Tab,[ ssShift ]); //参考如下代码procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);var Key: Word;begin if Button = mbLeft then begin Key := VK_TAB; FormKeyDown(Sender, Key, Shift); end;end; 这是执行KeyDown事件中的代码如果你要模拟按键的话请搜索以前的帖子 又一个月 如何在点了BUTTON或SPEEDBUTTON按钮后进行后台处理数据的时候设置鼠标为繁忙的样子? 如何用table.sort:='';来按年龄和班级等两项或三项内容排序呢? 关于TCollection和TCollectionItem的继承类 如何选择数据库里边的表? sql库的复制 关于钩子与keybd_event的问题,不能同时使用吗?在线等 如何使一个程序重新运行 InfoPower2000 Pro_d5c5 的注册吗??? storedproc1 就解:rgbtBlue(rgbtRed,rgbtGreen)是什么变量?为什么使用时不需要定义? 怎么样用STRUCT类型的数据
if button=mbleft then
sgProductKeyDown(self,vk_Tab,[ ssShift ]);
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
Key: Word;
begin
if Button = mbLeft then begin
Key := VK_TAB;
FormKeyDown(Sender, Key, Shift);
end;
end;