cancel
Showing results for 
Search instead for 
Did you mean: 

Translating keycodes from pbm_dwnkey for foreign language keyboards

Former Member
0 Kudos
100

I have a place in my program where I need to translate keycodes from the pbm_dwnkey event in a DW to characters, but have just realized that if you have a foreign-language keyboard, it doesn't work to pick up accented characters - I'm doing everything based on the assumption that it's English, which isn't true for some of our users. (In fact, I suspect some regular characters might not be working correctly on other keyboards.)

Is there a way to work around this, or perhaps use some Windows API instead of hard-coding a huge case statement as I have done?

The use case is a DW displaying a list of names, where I want the user to just be able to have the focus in the DW, and start typing first letters of the name, and have it scroll to that name. I don't want them to have to first click into some search field to do that (which obviously would be one solution).

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

OK, I'm going to assume from the lack of responses that nobody knows how to do this (and it's probably impossible in PB). I will take some different approach - possibly just documenting in the Help that only regular letters without accents work.

Thanks anyways.