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
  • 相关阅读:
    B
    A
    UVA
    马的移动(BFS) 详细注释 一个具有情怀的题目
    JAVA JDK 环境变量配置--简单图解
    linux系统(rpm与deb环境),JAVA JDK的配置
    Jmeter接口测试+压力测试+环境配置+证书导出
    LR访问Https接口
    GitHub linux 提交文件及403错误处理
    random模块写的验证码
  • 原文地址:https://www.cnblogs.com/lishk/p/3720037.html
Copyright © 2011-2022 走看看