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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)