Forum > Windows

how to use LoadKeyboardLayout ?

(1/1)

majid.ebru:
Hi

how can i use LoadKeyboardLayout??

LoadKeyboardLayout('00000429', KLF_ACTIVATE);

trev:
See https://forum.lazarus.freepascal.org/index.php?topic=42694.15

majid.ebru:
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:
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:

--- Quote from: majid.ebru on May 16, 2022, 12:00:32 pm ---how can i use LoadKeyboardLayout??
LoadKeyboardLayout('00000429', KLF_ACTIVATE);

--- End quote ---
It works fine for me:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---uses Windows; procedure TForm1.Edit1Enter(Sender: TObject);begin  LoadKeyboardLayout('00000429', KLF_ACTIVATE);end;Windows 7 still.

Navigation

[0] Message Index

Go to full version