Recent

Author Topic: how to use LoadKeyboardLayout ?  (Read 825 times)

majid.ebru

  • Sr. Member
  • ****
  • Posts: 414
how to use LoadKeyboardLayout ?
« on: May 16, 2022, 12:00:32 pm »
Hi

how can i use LoadKeyboardLayout??

LoadKeyboardLayout('00000429', KLF_ACTIVATE);

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1998
  • Former Delphi 1-7, 10.2 user
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 x86_64 Xcode 13.4
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 aarch64 Xcode 13.4

majid.ebru

  • Sr. Member
  • ****
  • Posts: 414
Re: how to use LoadKeyboardLayout ?
« Reply #2 on: May 17, 2022, 07:36:45 am »
sorry
i don't want to check keyboard state

i want when i enter to editbox the language of it , chenged??

i want to change keyboard language to farsi to english to another language.

thank you

majid.ebru

  • Sr. Member
  • ****
  • Posts: 414
Re: how to use LoadKeyboardLayout ?
« Reply #3 on: June 01, 2022, 11:04:15 am »
can one help ot guide me ??

i want when i enter to edit box , the language of edit box chenged like that i press shift + alt (in windows)??

best regards

ASerge

  • Hero Member
  • *****
  • Posts: 2030
Re: how to use LoadKeyboardLayout ?
« Reply #4 on: June 09, 2022, 02:42:07 am »
how can i use LoadKeyboardLayout??
LoadKeyboardLayout('00000429', KLF_ACTIVATE);
It works fine for me:
Code: Pascal  [Select][+][-]
  1. uses Windows;
  2.  
  3. procedure TForm1.Edit1Enter(Sender: TObject);
  4. begin
  5.   LoadKeyboardLayout('00000429', KLF_ACTIVATE);
  6. end;
Windows 7 still.

 

TinyPortal © 2005-2018