zoukankan      html  css  js  c++  java
  • DataWindow箭头移动

    Subroutine keybd_event(uint bVk,uint bScan,long dwFlags,long dwExtraInfo ) library "user32.dll" //貌似不用这个也可以
     
    自定义 pbm_dwnkey 事件 【 注意:不是pbm_keydown】
     
    choose case key
     case keyenter!
      if This.getRow() = this.rowCount() then
       This.insertrow(0)
       This.scrolltorow(This.getrow()+1)
       This.Setcolumn(1)
      end if
      return 1
     
     case KeyLeftArrow!
      if This.getcolumn() = 1 and This.getRow()<>1 then
       This.scrolltorow(This.getrow()-1)
       This.Setcolumn(Long(This.Describe("Datawindow.Column.count")))
      else
       This.Setcolumn(This.getcolumn()-1)
      end if
      return 1
     
     case KeyRightArrow!
      if This.getcolumn()=Long(This.Describe("Datawindow.Column.count")) then
       if this.getrow()=This.Rowcount() then
        This.insertrow(0)
        This.scrolltorow(This.getrow()+1)
        This.Setcolumn(1)
        return
       end if
      end if
      send(Handle(this),256,9,long(0,0))
      return 1
     
     case keyUpArrow!
    // if This.getcolumn() <> 1 then
    // this.sertRow(this.getRow()-1)
    // end if
    // return 1
     
     case keydownArrow!
    // if This.getRow() <> this.rowCount() then
    //
    // end if
    // return 1
    end choose
  • 相关阅读:
    单页面应用 之 项目中集成插件vue-router
    公共组件的创建和使用
    数据库初识
    MySQL的安装 --windows版本
    多线程补充以及协程
    多线程(三)
    多线程(二)
    多线程(一)
    多进程(二)
    多进程(一)
  • 原文地址:https://www.cnblogs.com/lishk/p/3720037.html
Copyright © 2011-2022 走看看