Hello Mr Rao,
I try to use oBrw:bKeyChar with oBarGet but it does not take focus, for the input of the search string.
Here is the code I use
Thanks for the help
I try to use oBrw:bKeyChar with oBarGet but it does not take focus, for the input of the search string.
Here is the code I use
Function Main()
 ...
Â
 oBrw::bKeyChar = {|nKey| QuerySeekWild( oBrw, oQry, cQuery, nKey )}
 ...
RETURN Nil
Static Function QuerySeekWild( oBrw, Â oQry, cQuery, nKey )
 ...
 oBrw:lGetBar  = .T.
 oBrw:nGetBarHeight  = 40
 AEval( oBrw:aCols, {|o| o:uBarGetVal := "", o:bClrEdit  := {|| { CLR_BLACK, CLR_YELLOW } } } )
 oBrw:Refresh()
 ...
 oCol:uBarGetVal = uSeek Â
 oCol:CreateBarGet()
 oCol:oBarGet:SetFocus() <--- // Here I need to activate control get with oCol:oBarGet
                // the get control does not take focus
                // for the user enters the search string
 ...
 oBrw:lGetBar = .F.
 oBrw:Refresh()
Â
RETURN uSeekThanks for the help
