How do I dddw the state when typing letters in DDDW? Original

Source: Internet
Author: User
Pull Down | original
How do I dddw the state when typing letters in DDDW?

Problem Description:

How do I dddw the state when typing letters in DDDW?

Solution:

1. Declaring instance variables:

Boolean ib_show



2. Declare external function:

Subroutine keybd_event (int bvk,int bscan,ulong dwflags,ulong dwextrainfo) LIBRARY "User32.dll"



3. New Custom event: Pbm_dwnkey code as follows:

If GetColumn () = 2 then///This assumes that your DDDW is the 2nd column, and if it is the other column, modify it Yourself

If not Ib_show then

keybd_event (18,0,0,0)

keybd_event (40,0,0,0)

keybd_event (40,0,2,0)

keybd_event (18,0,2,0)

Ib_show = True

End If

Else

Ib_show = False

End If



4, in the clicked and Doubleclicked events in the DW are written separately:

Ib_show = False



5, test it, so you can pop down DDDW, but dddw automatic scrolling code I did not write, you finish it!




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.