FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveLinux / FiveDroid (Android) Added support for colors in browse lines
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Added support for colors in browse lines
Posted: Wed Aug 10, 2011 03:30 PM
Implemented colors support for browse lines, both background and text, example:

Code (fw): Select all Collapse
#include "FiveLinux.ch"

REQUEST DBFCDX

function Main()

   local oWnd, oBrw

   USE customer VIA "DBFCDX"

   DEFINE WINDOW oWnd TITLE "Testing Browses" SIZE 522, 317

   @ 2, 2 BROWSE oBrw OF oWnd ;
      HEADERS "First", "Last", "Street", "City", "State", "Zip" ;
      FIELDS  First, Last, Street, City, State, Zip

   oBrw:nClrPane = { | nRow, lSelected | If( ! lSelected, If( nRow % 2 == 0, CLR_GREEN, CLR_WHITE ), nil ) } 
   oBrw:nClrText = { | nRow, lSelected | If( ! lSelected, If( nRow % 2 == 0, CLR_YELLOW, CLR_BLACK ), nil ) } 

   @ 28, 2 BUTTON "_Ok" OF oWnd ACTION oWnd:End()

   ACTIVATE WINDOW oWnd

return nil


regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 52
Joined: Mon Oct 17, 2005 08:42 PM
Re: Added support for colors in browse lines
Posted: Fri Aug 12, 2011 10:29 PM

Intresting

Continue the discussion