ot4xb.public
keyboard layout
Thread Starter: Zdeno Bielik Started: 11/3/2008 8:02 PM UTC
Replies: 1
keyboard layout
Hi,

is it possible save current keyboard layout, set new needed and then back previosly saved?
Bar code is correctly scanend only when layout is set to US and when user forgot change it from Slovak or Czech,
then trash/stuff is scanned and must delete it, change layout and re-scan and after scanning againg set national layout...
I want automatically set it when oGet get input focus and change back when will lost focus.

Thanks
           Zdeno
Re: keyboard layout
Hi,
You can use GetKeyboardLayout() / ActivateKeyboardLayout() from user32.dll to get/change it per thread
Just a pita. probably you must call them with DELEGATE_FPQCALL() as your Xbp  windows are really running in the GUI thread

Regards,
Pablo Botella

   Links to product home pages:   • SQLExpress - Xb2.NET     • ot4xb