Hi, all !
XBrowse column is of type :nEditType:= EDIT_GET
Standard GET-object editing is invoked by double-clicking. Is it possible to activate editing a cell, not a double click, and keystroke on the keyboard ?
Hi, all !
XBrowse column is of type :nEditType:= EDIT_GET
Standard GET-object editing is invoked by double-clicking. Is it possible to activate editing a cell, not a double click, and keystroke on the keyboard ?
Is it possible to activate editing a cell, not a double click, and keystroke on the keyboard ?
oBrw:lFastEdit := .t.Yes, I did lFirstEdit:=.T. But I don't understand how you can prevent the double click and enter your key combination to activate the edit
Natter wrote:Yes, I did lFirstEdit:=.T. But I don't understand how you can prevent the double click and enter your key combination to activate the edit
oCol:bLDClickData := { || nil }oBrw:lEnterKey2Edit := .f.oBrw:lF2KeyToEdit := .t.oCol:bKeyChar := { |k| If( k == 5, oCol:Edit(), nil ) }Thank You, Mr. Rao. This is what you need !
Another question - can I handle the event of movement of the mouse cursor on the header of xBrowse ?
You can handle mouse movement by assigning oBrw:bMMoved := { |nRow, nCol, nFlags| <yourfunc>( nRow, nCol, nFlags ) }
Within your function you can check if nRow < oBrw:nHeaderHeight to check if the mouse is on header.