give the setfocus to getbar

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

give the setfocus to getbar

Post 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 ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: give the setfocus to getbar

Post 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 ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: give the setfocus to getbar

Post by Silvio.Falconi »

found a solution !!!

I sent the modification to Nageswarao,Antonio and Cristobal


Image
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: give the setfocus to getbar

Post by nageswaragunupudi »

Thanks.
Your suggestion implemented in FWH2004.
Regards

G. N. Rao.
Hyderabad, India
Post Reply