Page 1 of 1

How to handle keystroke by TActiveX, instead of TGET?

Posted: Mon Oct 26, 2009 5:36 pm
by Max HK
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.

Re: How to handle keystroke by TActiveX, instead of TGET?

Posted: Mon Nov 02, 2009 9:06 am
by Antonio Linares
Max,

Simply give the focus to the ActiveX, and the user input will go to it:

oActiveX:SetFocus()