Forum > Packages and Libraries
DBGRid send keypres from program
(1/1)
eldonfsr:
Ho i can call process i send like that
DBGPartsSupKeyPress(Sender , VK_TAB);
Ho I can call from program and send parameters...
Any help great
balazsszekely:
--- Quote from: eldonfsr on September 09, 2021, 01:13:32 am ---Ho i can call process i send like that
DBGPartsSupKeyPress(Sender , VK_TAB);
Ho I can call from program and send parameters...
Any help great
--- End quote ---
Do you wish to simulate one or more keypress on DBGrid? If yes then please take a look at package lazmouseandkeyinput. Under windows there are other options too, like:
--- 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";}};} ---procedure TForm1.Button1Click(Sender: TObject);begin //on button click, simulate tab on the grid PostMessage(DBGrid1.Handle, WM_KEYDOWN, VK_TAB, 0); PostMessage(DBGrid1.Handle, WM_KEYUP, VK_TAB, 0);end;
Navigation
[0] Message Index