Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Send keys in FNC under FMX

 Post Reply Post Reply
Author
Steve Sinclair View Drop Down
New Member
New Member
Avatar

Joined: 24 Dec 2012
Posts: 39
Post Options Post Options   Quote Steve Sinclair Quote  Post ReplyReply Direct Link To This Post Topic: Send keys in FNC under FMX
    Posted: 15 Mar 2018 at 5:48pm
Hi,

I have a search edit that has a TtmsFncResponsiveList underneath it.  I would like to send the arrow keys and the enter key to the responsive list without leaving  the edit as I type.  In the VCL I could use TWinControl.Perform for this from the edit's onkeydown but how would I do it in FMX with the responsive list?

procedure TfrmMain.edtSearchStockpilesKeyDown( Sender: TObject; var Key: Word; var KeyChar: Char; Shift: TShiftState );
begin
  tmslogger.Info( Key );
  case Key of
    vkPrior: actStockpilesUpExecute( Sender );
    vkNext: actStockpilesDownExecute( Sender );
    vkLeft: lstStockpiles. ???;
    vkUp:;
    vkRight:;
    vkDown:;
    vkReturn:;

  end;
end;

Many thanks

Steve
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down