关于超想
本站导航
邮件列表
  首页 | 本站产品 | Delphi资料 | 免费资源 | 程序人生 | 软件工程 | 网站设计 | 推荐网站
你所在的位置 -> 主页 -> 超想软件 -> 编程资料 -> delphi -> 开发技巧 -> 构件使用 ->详细
相关内容  
 
 
在Delphi程序中应用IE浏览器控件
 
【新品推荐】

  详细内容
 

回车替Tab下移控件
作者: 评价: 上站日期: 2001-09-04
内容说明:
来源:

需要用回车键代替TAB键下移一个控件时,把KeyPress设为True,加入下列代码拦截击键: 
Procedure TForm1.FormKeyPress(Sender:Tobject;Var Key:Char); 
Begin 
 if key=#13 then { 判断是按执行键} 
 if not (ActiveControl is TDbgrid) Then 
 Begin { 不是在TDbgrid控件内} 
  key:=#0; 
  perform(WM_NEXTDLGCTL,0,0);{移动到下一个控件} 
 end else 
 if (ActiveControl is TDbgrid) Then{是在 TDbgrid 控件内} 
 begin 
  With TDbgrid(ActiveControl) Do 
  if Selectedindex< (FieldCount-1) then 
  Selectedindex:=Selectedindex+1{ 移动到下一字段} 
  else Selectedindex:=0; 
 end; 
End; 

 
你所在的位置 -> 主页 -> 超想软件 -> 编程资料 -> delphi -> 开发技巧 -> 构件使用 ->详细
  首页 | 本站产品 | Delphi资料 | 免费资源 | 程序人生 | 软件工程 | 网站设计 | 推荐网站
声明:本站内容除注明原创以外均从网上摘抄,如有侵权请指明。
  如果您对我们的网站有什么意见或者建议,请与我们联系
powered by 建站易上手- V2.0