FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Step to disable F2 in xBrowse of FWH 10.5?
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Step to disable F2 in xBrowse of FWH 10.5?
Posted: Mon Jul 12, 2010 08:05 AM

Antonio,
Could you provide the exact changes that needs to be done in order to disable the F2 feature in FWH10.5?

Thank you

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Step to disable F2 in xBrowse of FWH 10.5?
Posted: Mon Jul 12, 2010 08:41 AM
In version 10.5, we need to modify the xbrowse.prg.
Please locate VK_F2 in the method KeyDown(..) and comment out the entire block:
Code (fw): Select all Collapse
   case nKey == VK_F2 
        if ! ::lEditMode
            ::SelectedCol():Edit()
        endif


In version 10.6, F2 is not used by default. Default is old traditional behavior where Enter key triggers edit and F2 key has no action.

In case Excel like behavior ( in 10.6 ) is desired the following data are to be set:
Code (fw): Select all Collapse
oBrw:lEnterKey2Edit := .f.  // default .t.
oBrw:lF2KeyToEdit := .t. // default .f.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Step to disable F2 in xBrowse of FWH 10.5?
Posted: Mon Jul 12, 2010 08:50 AM

Thank you for the prompt reply Rao :)

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion