Print Page | Close Window

Send keys in FNC under FMX

Printed From: TMS Software
Category: FNC Components
Forum Name: FNC General
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=8766
Printed Date: 20 Oct 2019 at 3:34am


Topic: Send keys in FNC under FMX
Posted By: Steve Sinclair
Subject: Send keys in FNC under FMX
Date 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



Print Page | Close Window