Añadido soporte de colores en las líneas de los browses
Posted: Wed Aug 10, 2011 3:32 pm
Añadido soporte de colores en las líneas de los browses, en el fondo y en el texto, ejemplo:
Code: Select all
#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