58 FXIcon* icon = (state & OPENED) ? openIcon : closedIcon;
59 FXFont* font = list->getFont();
60 FXint th = 0, tw = 0, ih = 0, iw = 0;
63 iw = icon->getWidth();
64 ih = icon->getHeight();
65 dc.drawIcon(icon, xx, yy + (hh - ih) / 2);
69 tw = 4 + font->getTextWidth(label.text(), label.length());
70 th = 4 + font->getFontHeight();
73 dc.setForeground(list->getSelBackColor());
74 dc.fillRectangle(xx, yy, tw, th);
77 dc.drawFocusRectangle(xx + 1, yy + 1, tw - 2, th - 2);
80 dc.setForeground(makeShadowColor(list->getBackColor()));
81 }
else if (isSelected()) {
82 dc.setForeground(list->getSelTextColor());
86 dc.drawText(xx + 2, yy + font->getFontAscent() + 2, label);
FXTreeItem * appendItem(FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=FXRGB(0, 0, 0))
append item with given text and icon
FXTreeItem * prependItem(FXTreeItem *father, const FXString &text, FXIcon *oi, FXColor tColor=FXRGB(0, 0, 0))
prepend item with given text and icon