Xbrowse: Allow spacebar to to toggle checkbox column

Xbrowse: Allow spacebar to to toggle checkbox column

Postby hua » Fri Jul 28, 2023 4:36 am

Why is spacebar not detected when column 7 has focus? It works when the focus is on other column

Code: Select all  Expand view

      ::oMainBrw:bLDblClick := {|| ::oMainBrw:aCols[7]:checkToggle()}
      ::oMainBrw:bKeyChar   := { |key| if( key == VK_SPACE, eval(::oMainBrw:bLDblClick), nil ) }
 


TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Xbrowse: Allow spacebar to to toggle checkbox column

Postby nageswaragunupudi » Sat Aug 05, 2023 9:41 am

Natively pressing space bar when the column has focus, toggles the value.
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests