09-21-2019, 04:21 PM
(09-21-2019, 01:36 PM)JuergenS Wrote: Hi Soren,
this is an C++ example of handling a button event from an edit control
which also requires little effort and of course can be implemented in Delphi:
void __fastcall TIWFormEdit::IWEditAsyncKeyDown(TObject *Sender, TStringList *EventParams)
{
if(vkF10 == EventParams->ValueFromIndex[EventParams->IndexOfName(L"which")].ToInt())
{
// Call your corresponding button event handler
IWButtonClick(Sender);
}
}
Regards
Juergen
Hi JuergenS,
thanks. I'll check it out. It look like I would normally do it in Delphi, though it is on the form I need it. Not a particular edit control.
Regards
Soren