Skip to Content

Translating keycodes from pbm_dwnkey for foreign language keyboards

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 13, 2015 at 01:07 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.