How to handle keystroke by TActiveX, instead of TGET?

Post Reply
Max HK
Posts: 23
Joined: Wed Oct 15, 2008 1:04 pm

How to handle keystroke by TActiveX, instead of TGET?

Post 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.
User avatar
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?

Post by Antonio Linares »

Max,

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

oActiveX:SetFocus()
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply