in my application I use a CEikDirectoryTreeListBox which very nicely shows directory trees. I want to zoom in and out on such a directory tree but I don't know how to change the font and font heigth used for the item text.
I use the following method:
CListBoxData* data = new(ELeave) CListBoxData;
CleanupStack::Pop(); // data
CDirTree is a class dervived from CEikDirectoryTreeListBox and iItemDrawer is an object from the CDirectoryTreeListItemDrawer class.
It is very easy to change the font color to e.g. blue by putting the next statement in the method:
It is also very easy to change the item heigth to e.g. 15 pixels by using:
But is not easy to change the used font because the CDirectoryTreeListItemDrawer class doesn't have a member SetFont().
I hoped that by using SetData, which sets the font storage data (a CListBoxData class) for the item drawer and transfers ownership of that data, the problem would be solved. But it isn't
Who can advise me on this subject?
André van Wieringen
Software for Wireless