JackQu的程序员博客

欢迎来的我Blog.这里记录工作学习的点滴,愿与大家分享。欢迎大家共同交流 。

导航

用快捷键执行单据界面事件

procedure OnFormKeyDown(var Key: Word; Shift: TShiftState);
  begin
     if Key=112 then //VK_F1
      PostMessage(Self.Handle, WM_Print, 2, PP_Print);
      case Key of
        122: BitBtnNewBill.Click;  ///VK_F11
        123: BtnRead.Click;        //VK_F12
      end
  end;

 

posted on 2013-11-23 15:03  Qcj  阅读(265)  评论(0编辑  收藏  举报