Disable Listbox editCell highlight

This is a listbox, that I click in, to edit. Once the cell becomes editable, there’s a blue highlight that shows up automatically in back of the cell. Is it possible to remove or change this background to transparent?



I believe CellBackgroundPaint is the cell itself, this highlighting appears to be in back of the cell.

in the CELLCLICK event… return TRUE

Read the notes for CellBackgroundPaint and then try it.

CellClick does not fire with arrow key navigation.

in cellBackgroundPaint

// do stuff (if required) to custom draw your cell
  if (row and 1)=1 then 
  end if
  g.fillrect 0,0,g.Width,g.Height
  // disable auto highlight
  if row=me.ListIndex then return true

in cellTextPaint

if row=me.ListIndex then g.ForeColor=&c000000 // otherwise text on "highlighted" row will be white

adjust as required for your situation, works with mouse and keyboard navigation