Hey Jules, is it possible to throw in a “mouse over” flag in ListBoxModel::paintListBoxItem?
class ListBoxRowComponent : public Component
...
void paint (Graphics& g)
{
if (owner.getModel() != 0)
owner.getModel()->paintListBoxItem (row, g, getWidth(), getHeight(), selected, isMouseOver());
}
...
virtual void paintListBoxItem (int rowNumber,
Graphics& g,
int width, int height,
bool rowIsSelected,
bool isMouseOverItem = false) = 0;