void ListBox::notifyDrawItem(MyGUI::ListCtrl* _sender, MyGUI::Widget* _item, const MyGUI::IBDrawItemInfo& _info, MyGUI::IntCoord& _coord) { MyGUI::Button* text = *_item->getUserData<MyGUI::Button*>(); if (_info.update) { text->setCaption(mItemsInfo[_info.index]); MyGUI::IntSize size = text->getTextSize() + (text->getSize() - text->getTextRegion().size()); size.height = mHeightLine; _coord.set(0, 0, size.width, size.height); } text->setButtonPressed(_info.select); text->_setMouseFocus(_info.active); }