Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/26/2019 in all areas

  1. jarto

    TW3ButtonGroup?

    I have to think about it to see what would be the best solution. I also have to have a deep look at the toolbar. It's still original code.
    1 point
  2. I still get nothing, am I still missing something? I need to capture keys at the application or form level. procedure TForm1.HandleKeyDown(eventObj: JKeyboardEvent); begin Writeln(EventObj.charCode); end; procedure TForm1.InitializeForm; begin inherited; // this is a good place to initialize components Self.Handle.addEventListener('keydown', @HandleKeyDown, True); end; UPDATED Looks like I can capture using application Application.Document.Handle.addEventListener('keydown', @HandleKeyDown, True); OR TApplication = class(TW3CustomApplication) protected
    1 point
×
×
  • Create New...