Change Footer colors (xBrowse)
Change Footer colors (xBrowse)
Is there any example of an interactive color change in Footer (xBrowse) ?
- FranciscoA
- Posts: 2163
- Joined: Fri Jul 18, 2008 1:24 am
- Location: Chinandega, Nicaragua, C.A.
Re: Change Footer colors (xBrowse)
Did you already make a looking for "footer color"?
Regards
Regards
Francisco J. Alegría P.
Chinandega, Nicaragua.
Fwxh-MySql-TMySql
Chinandega, Nicaragua.
Fwxh-MySql-TMySql
- Willi Quintana
- Posts: 1025
- Joined: Sun Oct 09, 2005 10:41 pm
- Location: Cusco - Perú
- Contact:
Re: Change Footer colors (xBrowse)
Hi,
Code: Select all | Expand
oCol:bClrFooter := {|| {IF(oBrw:oCol(9):nTotal > 0, CLR_RED, CLR_BLACK), } }
Re: Change Footer colors (xBrowse)
Thank you for your help !
Of course, I immediately tried the construction of
aCols[cl]:bClrFooter:={||{RGB(...), RGB(...)}}
aCols[cl]:RefreshFooter()
But at the same time, only the font color changes, and the background color does not change![Sad :(](./images/smilies/icon_sad.gif)
Of course, I immediately tried the construction of
aCols[cl]:bClrFooter:={||{RGB(...), RGB(...)}}
aCols[cl]:RefreshFooter()
But at the same time, only the font color changes, and the background color does not change
![Sad :(](./images/smilies/icon_sad.gif)
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Change Footer colors (xBrowse)
return color pair { nClrText, nClrBack } when your bClrFooter is evaluated.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Change Footer colors (xBrowse)
Sorry, I got it! Is the update method not enough aCols[cl]:RefreshFooter() ?
- Willi Quintana
- Posts: 1025
- Joined: Sun Oct 09, 2005 10:41 pm
- Location: Cusco - Perú
- Contact:
Re: Change Footer colors (xBrowse)
Hi,
this code...
this code...
Code: Select all | Expand
oCol:bClrFooter := {|| {IF(oBrw:oCol(9):nTotal > 0, CLR_RED, CLR_BLACK), CLR_YELLOW} }
- Willi Quintana
- Posts: 1025
- Joined: Sun Oct 09, 2005 10:41 pm
- Location: Cusco - Perú
- Contact:
Re: Change Footer colors (xBrowse)
hi Friends
Code: Select all | Expand
oCol:bClrFooter := {|| {CLR_GREEN, CLR_BLUE} } // CLR_BLUE not working.........
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Change Footer colors (xBrowse)
Code: Select all | Expand
#include "fivewin.ch"
function Main()
local aData := { { "ONE ", 2000 }, { "TWO ", -5000 }, { "THREE", 2000 } }
XBROWSER aData FASTEDIT SETUP BrwSetup( oBrw )
return nil
static function BrwSetup( oBrw )
SetGetColorFocus()
oBrw:lFooter := .t.
oBrw:l2007 := .f.
WITH OBJECT oBrw:aCols[ 2 ]
:nFooterType := AGGR_SUM
:bClrFooter := { || If( oBrw:oCol( 2 ):nTotal < 0, { CLR_WHITE, CLR_HRED }, { CLR_BLACK, CLR_HGREEN } ) }
END
oBrw:MakeTotals()
return nil
![Image](https://imagizer.imageshack.com/img923/5369/I506HN.gif)
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Change Footer colors (xBrowse)
Hi Mr. Rao,
Which application do you use to create gif files.
Thanks.
Which application do you use to create gif files.
Thanks.
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact: