Question about GuiPopUpCtrl
by Jacob · in Torque Game Engine · 04/03/2005 (9:36 am) · 2 replies
I am hoping to be able to have my text centered in the cells of this control but haven't figured out how to go about it...I believe this is the code in GuiPopUpCtrl.cc that renders the text in a cell:
...any ideas please? Thank you!
void GuiPopUpTextListCtrl::onRenderCell(Point2I offset, Point2I cell, bool selected, bool mouseOver)
{
ColorI fontColor;
mPopUpCtrl->getFontColor( fontColor, mList[cell.y].id, selected, mouseOver );
dglSetBitmapModulation( fontColor );
dglDrawText( mFont, Point2I( offset.x + 4, offset.y ), mList[cell.y].text );
}...any ideas please? Thank you!
About the author
Associate Ben Garney