Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IWButtons Hotkey property and the &-sign in Captions
#10
(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

Nice simple solution. Thanks.
Reply


Messages In This Thread
RE: IWButtons Hotkey property and the &-sign in Captions - by kudzu - 09-21-2019, 03:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)