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
- Code: Select all Expand view RUN
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 uSeek
Thanks for the help