Skip to Content
avatar image
Former Member

DropDownDW ShowList when key press

Regards.

I use one dropDownDW with Allow Editing, is possible active showlist property only when i press one key?

Victor

DropDowList.png (11.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 13, 2015 at 06:42 PM

    Has this question been answered?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2015 at 02:43 PM

    Did you try pressing F4?

    If you want a different keystroke, look into something like this...

    1. Define an external function (keyBd_event has been superceded by sendInput, but works for the purposes of this example):

    SUBROUTINE keybd_event( int bVk, int bScan, int dwFlags, int dwExtraInfo) LIBRARY "user32.dll"

    2. define a datawindow user event for pbm_dwnKey and insert the following (this will issue an F4 down and F4 up when the user presses PageDown while holding the CTRL/Shift):

    IF key = KeyPageDown! THEN

         IF keyFlags = 3 THEN

              POST FUNCTION keybd_event(115, 0, 0, 0)

              POST FUNCTION keybd_event(115, 0, 2, 0)

         END IF

    END IF

    Add comment
    10|10000 characters needed characters exceeded