Another setcheck xbrowse - RESOLVED -

Another setcheck xbrowse - RESOLVED -

Postby Silvio.Falconi » Sat Nov 02, 2024 5:02 pm

I made this xbrowse to make a selection of Wheels

Image

Code: Select all  Expand view  RUN

WITH OBJECT :aCols[ 1]
             :SetCheck(, .t. )
             *:nHeadBmpNo    := 2
          END


for Now I can click only on first column to check , I wish click on second column to check first column

then I wish colorize with orange color the record selected

I made

:bClrSel := { || { ORANGE,CLR_WHITE } } but not run ok


and I wish no cursor on xbrowse , because at init I see the bx on first line I made also

Image

oBrw:bLostFocus := { || oBrw:nMarqueeStyle := 0 }
oBrw:bGotFocus := { || oBrw:nMarqueeStyle := 2 }

but not run ok
Last edited by Silvio.Falconi on Mon Nov 04, 2024 1:32 pm, edited 1 time in total.
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: 7070
Joined: Thu Oct 18, 2012 7:17 pm

Re: Another setcheck xbrowse

Postby nageswaragunupudi » Sat Nov 02, 2024 10:20 pm

I made

:bClrSel := { || { ORANGE,CLR_WHITE } } but not run ok

Naturally it does not.
You may use bClrStd
Regards

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

Re: Another setcheck xbrowse

Postby nageswaragunupudi » Sat Nov 02, 2024 10:25 pm

for Now I can click only on first column to check , I wish click on second column to check first column


Code: Select all  Expand view  RUN
oBrw:aCols[ 2 ]:bLDClickData := { || oBrw:aCols[ 1 ]:CheckToggle() }
Regards

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

Re: Another setcheck xbrowse

Postby Silvio.Falconi » Sun Nov 03, 2024 11:30 am

nageswaragunupudi wrote:
I made

:bClrSel := { || { ORANGE,CLR_WHITE } } but not run ok

Naturally it does not.
You may use bClrStd


If I made :bClrStd := { || { CLR_WHITE, ORANGE } } no good for me


Image

I wish have the text white on orange when I select one record

and when I click over ( true) the second column ( that is checked) must colorize of orange
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: 7070
Joined: Thu Oct 18, 2012 7:17 pm

Re: Another setcheck xbrowse

Postby nageswaragunupudi » Sun Nov 03, 2024 3:55 pm

If I made :bClrStd := { || { CLR_WHITE, ORANGE } } no good for me

Need to make it conditional. Right?
Regards

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

Re: Another setcheck xbrowse

Postby Silvio.Falconi » Sun Nov 03, 2024 4:28 pm

nageswaragunupudi wrote:
If I made :bClrStd := { || { CLR_WHITE, ORANGE } } no good for me

Need to make it conditional. Right?


I tried also

AEval( oBrw:aCols, { |oCol,i| If( oCol:hChecked , ;
oCol:bClrStd := { || { CLR_WHITE, ORANGE } } , nil ) } )

or

oBrw:aCols[ 2 ]:bClrStd :={ |oCol,i| If( oCol:hChecked , ;
{ || { CLR_WHITE, ORANGE } } , nil ) }

but not work
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: 7070
Joined: Thu Oct 18, 2012 7:17 pm

Re: Another setcheck xbrowse

Postby nageswaragunupudi » Mon Nov 04, 2024 2:09 am

Code: Select all  Expand view  RUN
oBrw:bClrStd := { || { CLR_BLACK, If( oBrw:aRow[ 1 ], METRO_ORANGE, CLR_WHITE ) } }
Regards

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

Re: Another setcheck xbrowse

Postby Silvio.Falconi » Mon Nov 04, 2024 9:38 am

nageswaragunupudi wrote:
Code: Select all  Expand view  RUN
oBrw:bClrStd := { || { CLR_BLACK, If( oBrw:aRow[ 1 ], METRO_ORANGE, CLR_WHITE ) } }



Sorry Nages,

it wasn't what I wanted, that is, I wanted that when I passed the mouse over it (in the second column) the writing could light up in orange just like I do with the menu on the right

Image


I tried with
:nMarqueeStyle := 6 //MARQSTYLE_HIGHLROWMS
:bClrSelFocus := { || { CLR_BLACK, { { 1, LIGHTORANGE , ;
ORANGE } } } }


Image


But I wish it only on second column
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: 7070
Joined: Thu Oct 18, 2012 7:17 pm

Re: Another setcheck xbrowse

Postby Silvio.Falconi » Mon Nov 04, 2024 1:21 pm

perhaps I found a solution

:nMarqueeStyle := 3
oBrw:aCols[ 2 ]:bClrSelFocus := { || { CLR_BLACK, { { 1, LIGHTORANGE , ;
ORANGE } } } }

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: 7070
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Willi Quintana and 49 guests