Change Footer colors (xBrowse)

Post Reply
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Change Footer colors (xBrowse)

Post by Natter »

Is there any example of an interactive color change in Footer (xBrowse) ?
User avatar
FranciscoA
Posts: 2163
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: Change Footer colors (xBrowse)

Post by FranciscoA »

Did you already make a looking for "footer color"?
Regards
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
Willi Quintana
Posts: 1025
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú
Contact:

Re: Change Footer colors (xBrowse)

Post by Willi Quintana »

Hi,

Code: Select all | Expand

                         oCol:bClrFooter    := {|| {IF(oBrw:oCol(9):nTotal > 0, CLR_RED, CLR_BLACK), }  }

 
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: Change Footer colors (xBrowse)

Post by Natter »

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 :(
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Change Footer colors (xBrowse)

Post by nageswaragunupudi »

return color pair { nClrText, nClrBack } when your bClrFooter is evaluated.
Regards

G. N. Rao.
Hyderabad, India
Natter
Posts: 1241
Joined: Mon May 14, 2007 9:49 am

Re: Change Footer colors (xBrowse)

Post by Natter »

Sorry, I got it! Is the update method not enough aCols[cl]:RefreshFooter() ?
User avatar
Willi Quintana
Posts: 1025
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú
Contact:

Re: Change Footer colors (xBrowse)

Post by Willi Quintana »

Hi,
this code...

Code: Select all | Expand

    oCol:bClrFooter    := {|| {IF(oBrw:oCol(9):nTotal > 0, CLR_RED, CLR_BLACK), CLR_YELLOW}  }
 
User avatar
Willi Quintana
Posts: 1025
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú
Contact:

Re: Change Footer colors (xBrowse)

Post by Willi Quintana »

hi Friends

Code: Select all | Expand

   oCol:bClrFooter    := {|| {CLR_GREEN, CLR_BLUE}  }                    //  CLR_BLUE not working.........
 
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Change Footer colors (xBrowse)

Post by nageswaragunupudi »

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
Regards

G. N. Rao.
Hyderabad, India
Horizon
Posts: 1323
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 4 times

Re: Change Footer colors (xBrowse)

Post by Horizon »

Hi Mr. Rao,

Which application do you use to create gif files.

Thanks.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: Change Footer colors (xBrowse)

Post by nageswaragunupudi »

ScreenToGif
Regards

G. N. Rao.
Hyderabad, India
Post Reply