Journal
By Damien LEFEVRE, Thursday 16 November 2006 at 16:51 :: Journal :: #32 :: rss
So here come some fresh news. As I mentioned in the last post the ListBox objects are not powerful and flexible enough for the project requirements. Recoding a ListBox in C++ would consume hell of time and even with the existing other list box type I couldn't satisfy the requirements.
So the last days, I made a new class in the UI package of the MobiiliPuntariAPI which is a copy of the ListBox but in Python! Performances will be poor but it works... It consist basically of drawing on a canvas.
All the logic for scrolling elements and drawing the caption took the most of the time. It's not easy nether pretty to find all cases. But it's a good base class that I will use for the other lists with extended text and extended text + picture. I might also add a little scroll bar on the right.
TODO:
- try to find a way to have icons with transparency (tomorrow maybe :D)
- clean the code and protect some variables and method from violation