Page 1 of 1

give the setfocus to getbar

PostPosted: Sat Apr 18, 2020 3:08 pm
by Silvio.Falconi
I would like to give the getbar the focus because at the beginning the user presses the button to display the getbar and the focus is not on the get

Image

wich is the command ?

I allready tried with

IIf(oBrowse:lGetBar, oBrowse:aCols[ 1 ]:oBarGet:setfocus(),)

not run !!!!! I don't see the cursor flashing in the get

then I not see the bitmap zoom2 on the get , why ?

:aCols[ 1 ]:cBarGetBmp := hBmp not run !!!

Any solution please ?

Re: give the setfocus to getbar

PostPosted: Sat Apr 18, 2020 10:37 pm
by Silvio.Falconi
Now I found perhaps some solutions

:aCols[ 1 ]:lBarGetOnKey := .t. // after having setfocus the oBrowse object, the end user can insert the characters directly into the get

:aCols[ 1 ]:cBarGetBmp := hBmp // this for show the Bitmap on the get

:aCols[ 1 ]:bBarGetAction := { || ( oBrowse:cAlias )->( SetFilter( oBrowse )) } // this for show the bitmap on the get and associated a action


now it might work well but I still have a small problem
the image is not correctly displayed inside the get as you can see in the image
it is not aesthetically beautiful to look at

Image

any solution please ?

Re: give the setfocus to getbar

PostPosted: Sat Apr 18, 2020 11:23 pm
by Silvio.Falconi
found a solution !!!

I sent the modification to Nageswarao,Antonio and Cristobal


Image

Re: give the setfocus to getbar

PostPosted: Mon Apr 27, 2020 3:25 am
by nageswaragunupudi
Thanks.
Your suggestion implemented in FWH2004.