How to put dc_findbrowse in zebra style

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
pedroah
Posts: 28
Joined: Wed Nov 05, 2014 7:15 pm
Location: Dominican Republic
Contact:

How to put dc_findbrowse in zebra style

#1 Post by pedroah »

Dear Board

Please tell me how can I can show the DC_Findbrowse in zebra style.

Thanks in Advanced

User avatar
rdonnay
Site Admin
Posts: 4733
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to put dc_findbrowse in zebra style

#2 Post by rdonnay »

try this:

Code: Select all

aBrowPres := DC_BrowPres()

     #define BRW_ZEBRA_TAGGED_BGCOLOR     GRA_CLR_YELLOW
     #define BRW_ZEBRA_TAGGED_FGCOLOR     GRA_CLR_RED
     #define BRW_ZEBRA_TAGGEDHILITE_BGCOLOR     GRA_CLR_DARKGREEN
     #define BRW_ZEBRA_TAGGEDHILITE_FGCOLOR     GRA_CLR_WHITE
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_EVENROW_BGCLR  , GRA_CLR_YELLOW     })    // Zebra even row BG color
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_EVENROW_FGCLR  , GRA_CLR_BLACK      })    // Zebra even row FG color
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_ODDROW_BGCLR   , GRA_CLR_WHITE      })    // Zebra odd row BG color
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_ODDROW_FGCLR   , GRA_CLR_BLACK      })    // Zebra odd row FG color
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_ENABLED        , 1                  })    // Enable standard zebra colour
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_TAGGED_FGCLR ,BRW_ZEBRA_TAGGED_FGCOLOR})    // Zebra tagged row FG color
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_TAGGED_BGCLR ,BRW_ZEBRA_TAGGED_BGCOLOR})    // Zebra tagged row FG color
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_TAGGEDHILITE_FGCLR ,BRW_ZEBRA_TAGGEDHILITE_FGCOLOR})    // Zebra selected tagged row FG color
     Aadd(aBrowPres,{XBP_PP_COL_ZEBRA_TAGGEDHILITE_BGCLR ,BRW_ZEBRA_TAGGEDHILITE_BGCOLOR})    // Zebra selected tagged row FG color

@ nRow, nCol DCFINDBROWSE .. PRESENTATION aBrowPres
The eXpress train is coming - and it has more cars.

User avatar
pedroah
Posts: 28
Joined: Wed Nov 05, 2014 7:15 pm
Location: Dominican Republic
Contact:

Re: How to put dc_findbrowse in zebra style

#3 Post by pedroah »

Dear Roger

Works great

thank you very much

Post Reply