FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to handle keystroke by TActiveX, instead of TGET?
Posts: 24
Joined: Wed Oct 15, 2008 01:04 PM
How to handle keystroke by TActiveX, instead of TGET?
Posted: Mon Oct 26, 2009 05:36 PM

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.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to handle keystroke by TActiveX, instead of TGET?
Posted: Mon Nov 02, 2009 09:06 AM

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

Continue the discussion