class StoryListBox2 : public ListBox,
public ListBoxModel
{
Nothing drastic has been changed, although I have defined my own listBoxItemClicked function. My problem is I am struggling to get the class to register when I have clicked off of all the rows. The function backgroundClicked() actually does nothing on my side. Is there something I’m forgetting? And a note for Jules, why does backgroundClicked() work on double clicks?
Basically what I want to do is when a user has a row selected and they click on some blank space, I want all rows to deselect.
Go into the code in juce_ListBox.cpp, and search for the bit of code that actually calls backgroundClicked(). Put in a breakpoint, debug it, and trace into the call, to see why it’s not hitting your code. Normally when you trace through like this, the reason why it’s failing becomes blindingly obvious.