- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi关于dbgrid和webbrowser的焦点问题
在dbgrid1cellclick事件尾部加入
formname.focuscontrol(webbrowser1);
例如下:
procedure form1.dbgrid1cellclick(column: tcolumn)
var
oldcur:tcursor;
begin
oldcur := screen.cursor;
screen.cursor :=crhourglass;
form1.focuscontrol(webbrowser1);
screen.cursor:=oldcur;
end;