How to handle keystroke by TActiveX, instead of TGET?

How to handle keystroke by TActiveX, instead of TGET?

Postby Max HK » Mon Oct 26, 2009 5: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.
Max HK
 
Posts: 23
Joined: Wed Oct 15, 2008 1:04 pm

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

Postby Antonio Linares » Mon Nov 02, 2009 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Willi Quintana and 48 guests