From: José J. E. <jos...@gm...> - 2011-01-26 22:50:26
|
Hi, I'm using a ListBox inside a ScrollArea for showing a scrollable ListBox, it works fine but, when I scroll down to the last element of the ListBox, my program crashes showing an standard exception. I derived from ListModel using this: class MyListModel : public gcn::ListModel { public: std::string getElementAt( int i ) { return m_vector( i ); } int getNumberOfElements() { return m_vector.size(); } //~ private: std::vector<std::string> m_vector; }; I've just noticed it does not crash only when trying to show the last element of the list, but also when just scrolling down some elements, I found it when chaning the scroll area height. Hope someone has found these problems and have a recommendation, thanks in advance for your help. Jose Jorge Enriquez. |