TBCOLUMN colorBlock bug - xharbour

This is a discussion on TBCOLUMN colorBlock bug - xharbour ; This sample works in Clipper well, but in xHarbour rows are not coloured as would Proc Main() Local nI, nKey, oTbr, oColumn Field CODE DBCREATE ( 'TEST', { {'CODE', 'N', 4, 0 } } ) USE TEST For nI := ...

+ Reply to Thread
Results 1 to 3 of 3

TBCOLUMN colorBlock bug

  1. Default TBCOLUMN colorBlock bug

    This sample works in Clipper well, but in xHarbour rows are not
    coloured as would

    Proc Main()
    Local nI, nKey, oTbr, oColumn
    Field CODE

    DBCREATE ( 'TEST', { {'CODE', 'N', 4, 0 } } )
    USE TEST

    For nI := 1 to 10
    dbAppend()
    CODE := if(Empty(nI % 2), nI, -nI)
    next
    dbGoTop()

    oTbr := TBrowseDB(5, 5, 18, 75)
    oTbr:colorSpec := "N/W,W/N,N/N,R/N"

    oColumn = TBcolumnNew('Code', {|| CODE })
    oColumn:colorBlock := {|x| if(x < 0, {4,2}, {1,2})}
    oTbr:addColumn(oColumn)

    While .t.
    While ! oTbr:stabilize(); end
    nKey := Inkey(0)
    if oTbr:applyKey(nKey) == TBR_EXIT
    EXIT
    endif
    end
    dbCloseArea()
    Return

    best regards,
    Saulius


  2. Default Re: TBCOLUMN colorBlock bug

    Should be fixed after changelog 1.5735.

    regars,

    Eduardo


  3. Default Re: TBCOLUMN colorBlock bug

    Now it works, thank you
    Saulius



+ Reply to Thread

Similar Threads

  1. Problem with using TBColumn:ColorBlock
    By Application Development in forum Clipper
    Replies: 2
    Last Post: 03-12-2006, 06:50 PM