I explain you
I insert a list of numbers
26
45
67
78
each number is a product
then the user inserted a message for a product and for each message the filed "messagges" add +1
when the field message is >1 the column or row must be flashed
this a s symply test
#include "fivewin.ch"
#include "xbrowse.ch"
function Main()
local oWnd, oBrw, oDbf
Local oFontGrid
LOCAL n := RGB( 157, 248, 255 )
XbrNumFormat( 'E', .t. )
aRowGrad := { { .5, RGB( 0,251,220), RGB(221,255,251) }, ;
{ .5, RGB(221,255,251), RGB( 0,251,220) } }
aSelGrad := { { .5, RGB(255,224,126), RGB(255,255,193) }, ;
{ .5, RGB(255,255,193), RGB(255,224,126) } }
USE POSTINO
database odbf
DEFINE FONT oFontGrid NAME "MS Sans Serif" SIZE 0,-36 BOLD
DEFINE window ownd Title "General Table"
* @ 0,0 xbrowse oBrw of oWnd ;
* object odbf
oBrw:= TXBrowse():New(oWnd)
oCol:= oBrw:AddCol()
oCol:bStrData := { || postino->numero}
oCol:cHeader := "Numero"
oCol:nWidth := 50
oCol:oDataFont := oFontGrid
oCol:= oBrw:AddCol()
oCol:bStrData := { || postino->messaggi}
oCol:cHeader := "Mess"
oCol:nWidth := 80
oCol:oDataFont := oFontGrid
WITH OBJECT oBrw
:nStretchCol := 1
:nMarqueeStyle := 4
:bClrSelFocus := { || { CLR_BLACK, aSelGrad } }
:bClrRowFocus := { || { CLR_BLACK, aRowGrad } }
:nRowHeight := 40
:nHeaderHeight := 36
END
WITH OBJECT oBrw:numero
:AddBitmap( 'c:\work\fwh\bitmaps\open2.bmp' ) // non-alpha bitmap
:bBmpData := { || 1 }
END
* WITH OBJECT oBrw:messaggi
* :AddBitmap( 'c:\work\fwh\bitmaps\Alphabmp\task.bmp' ) // alpha
* :bBmpData := { || 1 }
* END
oBrw:CreateFromCode()
oWnd:oClient := oBrw
activate window oWnd
return nilOn postino.dbf there are two filed
NUMERO Numeric 4
MESSAGGI Numeric 3
Falconi Silvio