Tablelistbox header colour change

Hi jules,

I am using the table list box for the first time. I was wondering

  1. How can i change the colour of the header component to suit my needs?
  2. How to generate events by clicking a row?

I’m not sure if it’s the only way to achieve this, but what I did was

  1. override the LookAndFeel::drawTableHeaderBackground and LookAndFeel::drawTableHeaderColumn methods in my project-specific LookAndFeel subclass
  2. create a subclass of TableListModel for the listbox in question and override TableListModel::cellClicked to be notified of any clicks within the table content