I want to use a 3rd party Excel-like Grid ActiveX in a dialog. But the keystroke is handled by TGET/TDialog prior to the ActiveX. Therefore I cannot use Tab or Enter to move cells in the grid.
How to pass the key handling to ActiveX first, including Enter, Tab, Navigation Arrow Keys, Page Up/Down, etc ? Need to change TGET.PRG, DIALOG.PRG or WINDOW.PRG ?
Thanks.
How to handle keystroke by TActiveX, instead of TGET?
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: How to handle keystroke by TActiveX, instead of TGET?
Max,
Simply give the focus to the ActiveX, and the user input will go to it:
oActiveX:SetFocus()
Simply give the focus to the ActiveX, and the user input will go to it:
oActiveX:SetFocus()