- Welcome, Guest. Please Login or Register
MindFusion  
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing. We have released our Java Swing Pack.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Input locale not set in stand alone mode
Read 125 times

damiano   Offline
YaBB Newbies
*
Posts: 2
I Love MindFusion!


   
     
 
Input locale not set in stand alone mode
Jun 6th, 2017 at 4:03pm
 
Hello,

I am using your WPF VirtualKeyboard control. I need it to behave like Windows on screen keyboard, so I set IsStandAlone to true. This works fine.

I also would like to set InputLocale programmatically, but when I try to set this property nothing happens.

Could someone help me please ?

Thanks
 
 
 
IP Logged    
 
     

Slavcho   Offline
YaBB Moderator
*****
Posts: 1057
Gender: male
tech.support


   
     
 
Re: Input locale not set in stand alone mode
Reply #1 - Jun 6th, 2017 at 6:49pm
 
Hi,

Right, this setter only calls ActivateKeyboardLayout API function which changes input language of current (yours) process. So the keyboard tracks input language in foreground window and sets InputLocale automatically to match it, overriding your value. If you need to toggle between installed languages in target application, you could call keyboard.SendKey(Key.Lang) instead - this sends a WM_INPUTLANGCHANGEREQUEST to the foreground window and leads to ActivateKeyboardLayout being called in that application's process.

Regards,
Slavcho
 
 
 
IP Logged    
 
     

damiano   Offline
YaBB Newbies
*
Posts: 2
I Love MindFusion!


   
     
 
Re: Input locale not set in stand alone mode
Reply #2 - Jun 7th, 2017 at 8:13am
 
Hi,

thank you for the quick answer. Toggleing layout with keyboard.SendKey(Key.Lang) is not exactly what I tried to do. Finally I could select a locale by calling PostMessage(hWnd, WM_INPUTLANGCHANGEREQUEST, INPUTLANGCHANGE_FORWARD, MYLOCALE);
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print