Step to disable F2 in xBrowse of FWH 10.5?

Step to disable F2 in xBrowse of FWH 10.5?

Postby hua » Mon Jul 12, 2010 8: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
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Step to disable F2 in xBrowse of FWH 10.5?

Postby nageswaragunupudi » Mon Jul 12, 2010 8: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: Select all  Expand view
  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: Select all  Expand view
oBrw:lEnterKey2Edit := .f.  // default .t.
oBrw:lF2KeyToEdit := .t. // default .f.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10628
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Step to disable F2 in xBrowse of FWH 10.5?

Postby hua » Mon Jul 12, 2010 8:50 am

Thank you for the prompt reply Rao :)
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 62 guests

cron