DataWindow Arrow Move

Source: Internet
Author: User

Subroutine keybd_event (UINT bvk,uint bscan,long dwflags,long dwextrainfo) Library "User32.dll"//I don't seem to have this .Custom Pbm_Dwnkey  Event "Note: not 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  &N Bsp 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 1end Choose

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.