cancel
Showing results for 
Search instead for 
Did you mean: 

DropDownDW ShowList when key press

Former Member
0 Kudos

Regards.

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

Victor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Has this question been answered?

Former Member
0 Kudos

if i wont to use PFC, where i find help to use in PB21.5 classic?

Former Member
0 Kudos

You can find the latest 12.5 PFC release at: http://pfc.codeplex.com/releases/view/574382

If your project doesn't already include the PFC, you are better off using the example at the link I sent you earlier in this thread.  It should be pretty easy to incorporate into your current class library so that it is inherited.

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

I wont to press any key that i wont to find and the result show in the list

Former Member
0 Kudos

So, it sounds like what you want is a type ahead DDDW?  If you are using the PFC, this is built into the framework.  If you are not using the PFC, try this link:

http://anvil-of-time.com/wordpress/powerbuilder/powerbuilder-type-ahead-style-dropdown-datawindow-co...