Recent

Author Topic: DBGRid send keypres from program  (Read 1357 times)

eldonfsr

  • Sr. Member
  • ****
  • Posts: 446
DBGRid send keypres from program
« 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

balazsszekely

  • Guest
Re: DBGRid send keypres from program
« Reply #1 on: September 09, 2021, 08:07:27 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
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  [Select][+][-]
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. begin
  3.   //on button click, simulate tab on the grid
  4.   PostMessage(DBGrid1.Handle, WM_KEYDOWN, VK_TAB, 0);
  5.   PostMessage(DBGrid1.Handle, WM_KEYUP, VK_TAB, 0);
  6. end;
« Last Edit: September 09, 2021, 08:17:12 am by GetMem »

 

TinyPortal © 2005-2018