| 597 | } |
| 598 | |
| 599 | void CUIStatic::AdjustWidthToText() |
| 600 | { |
| 601 | // m_pLines->ParseText(); // надо ли тут парсить текст ? |
| 602 | float _len = m_pLines->GetFont()->SizeOf_(m_pLines->GetText()); |
| 603 | UI()->ClientToScreenScaledWidth(_len); |
| 604 | SetWidth(iCeil(_len)); |
| 605 | } |
| 606 | |
| 607 | void CUIStatic::SetTextST(LPCSTR str_id) { SetText(*CStringTable().translate(str_id)); } |
| 608 |
no test coverage detected