FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to trap key in xBrowse?
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
How to trap key in xBrowse?
Posted: Fri May 22, 2009 03:44 AM

At specific column(s), I want to test for VK_F2 so I can invoke a picklist.

How do I test for it such that it work whether or not user is editing at the time it's pressed?

TIA

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: How to trap key in xBrowse?
Posted: Fri May 22, 2009 05:05 AM

bKeyDown

Regards



G. N. Rao.

Hyderabad, India
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: How to trap key in xBrowse?
Posted: Sun May 24, 2009 10:56 AM

Thanks Mr Rao. How do we determine which column are we currently at?

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: How to trap key in xBrowse?
Posted: Sun May 24, 2009 02:12 PM

oBrw:SelectedCol() returns the column object that is selected.

oBrw:SelectedCol():nCreationOrder gives the column number at the time of creation.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: How to trap key in xBrowse?
Posted: Mon May 25, 2009 04:32 AM

Thanks again Rao :)

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion