suppose I’ve this class:
[code]class Foo :
Foo(const String& componentName) : ListBox(componentName, NULL)
setModel((ListBoxModel *)this); // NOT SURE IF THIS IS CORRECT
int getNumRows(); void paintListBoxItem(int rowNumber, Graphics& g, int width, int height, bool rowIsSelected); void mouseDown(const MouseEvent& e); void mouseDoubleClick(const MouseEvent& e);
I’ve miss something about how things works.
If I don’t add setModel() , mouse function are catched, but paint doesn’t works, and I think this is normal because no model is assigned so is assumed that nothing should be drawn.
With setModel(), paint works (of course), but mouse is not catched up.