__pTextObject->AppendElement(*pSimpleText);
__pTextObject->SetWrap(TEXT_OBJECT_WRAP_TYPE_WORD);
__pTextObject->SetAction(TEXT_OBJECT_ACTION_TYPE_ABBREV);
- __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
- __pTextObject->SetAlignment(TEXT_OBJECT_ALIGNMENT_CENTER | TEXT_OBJECT_ALIGNMENT_MIDDLE);
- __pTextObject->SetBounds(FloatRectangle(__pLabel->GetLeftMargin(), __pLabel->GetTopMargin(),
- __pLabel->GetBoundsF().width - (__pLabel->GetLeftMargin() + __pLabel->GetRightMargin()),
- __pLabel->GetBoundsF().height - (__pLabel->GetTopMargin() + __pLabel->GetBottomMargin())));
- __pTextObject->Compose();
return E_SUCCESS;
}
__pFont->SetStrikeOut(isStrikeOut);
__pFont->SetUnderline(isUnderLine);
+ __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
+
return E_SUCCESS;
}
return;
}
- __pTextObject->RemoveAll(true);
- pSimpleText = new (std::nothrow) TextSimple(const_cast<wchar_t*>(__pLabel->GetText().GetPointer()), __pLabel->GetText().GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
- __pTextObject->AppendElement(*pSimpleText);
-
__pTextObject->SetForegroundColor(__pLabel->GetTextColor(), 0, __pTextObject->GetTextLength());
__pTextObject->SetBounds(rect);
__pTextObject->Compose();
}
__pTextObject->SetAlignment(horizontalAlign | verticalAlign);
- __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__pTextObject->SetBounds(rect);
__pTextObject->Draw(*_CanvasImpl::GetInstance(*pCanvas));