Hello,
I'm failing to assign a color to a LB cell.
It should look like this:
# Init
col_color_idx = vs.InsertLBColumn(dialogID, kList_Brws, i, strings.col_clr, 40)
vs.SetLBItemDisplayType(dialogID, kList_Brws, i, 1) #xxx
vs.SetLBColumnOwnerDrawnType(dialogID, kList_Brws, i, col_color_idx, OwnerDrawType_Enum.solid_rect )
...
instert_pos = 0
i = vs.InsertLBItem(dialogID, kList_Brws, instert_pos, '???')
...
vs.SetLBItemFillForeColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex)
vs.SetLBItemFillBackColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex)
vs.SetLBItemPenBackColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex)
vs.SetLBItemPenForeColor(dialogID, kList_Brws, i, col_color_idx, redIndex, greenIndex, blueIndex)
What am I doing wrong?
thanks