give the setfocus to getbar

give the setfocus to getbar

Postby Silvio.Falconi » Sat Apr 18, 2020 3:08 pm

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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: give the setfocus to getbar

Postby Silvio.Falconi » Sat Apr 18, 2020 10:37 pm

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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: give the setfocus to getbar

Postby Silvio.Falconi » Sat Apr 18, 2020 11:23 pm

found a solution !!!

I sent the modification to Nageswarao,Antonio and Cristobal


Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: give the setfocus to getbar

Postby nageswaragunupudi » Mon Apr 27, 2020 3:25 am

Thanks.
Your suggestion implemented in FWH2004.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10651
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 103 guests