there is a Demo in c:\hmg.3.4.4\SAMPLES\Miscellaneous\Colors\DEMO.PRG
it have a Array with 2 Element {cName, aRGB} and work fine.
if found out that DynamicBackColor / DynamicForeColor use a Codeblock for each Column.
but these Color in Demo never change after create so how can i change Color after create
---
DynamicBackColor / DynamicForeColor have
but it work only when use Keyboard or click with Mouse into GRID, right- This.CellRowIndex
- This.CellColIndex
- This.CellValue
i think about ON CHANGE but again Mouse is not used ...
Question : does ON CHANGE have any "This."
---
i want to have a GRID only as Display which "refresh" Data every Second.
between time Client can store new Data into DBF / Array which are "load" on "refresh"
this are my Method under Xbase++
oLW1 is the Listview (GRID) Object
Code: Select all
METHOD OCalList:setCellColor( nRowPos, nColPos, nColorFG, nColorBG, lRepaint )
LOCAL lSuccess := .T.
::oLW1:lv_SetTextColor( nColorFG ) // LVM_SETTEXTCOLOR
::oLW1:lv_SetTextBkColor( nColorBG ) // LVM_SETTEXTBKCOLOR
RETURN lSuccess
METHOD OCalList:getCellColor( nRowPos, nColPos, nColorFG, nColorBG )
LOCAL lSuccess := .T.
nColorFG := ::oLW1:lv_GetTextColor() // LVM_GETTEXTCOLOR
nColorBG := ::oLW1:lv_GetTextBkColor() // LVM_GETTEXTBKCOLOR
RETURN lSuccess