pSimpleText = new (std::nothrow)TextSimple(pString, __text.GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
SysTryCatch(NID_UI_CTRL, (pSimpleText != null), , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ pSimpleText->SetTextShadowEnabled(true);
+ pSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
r = pTextObject->AppendElement(*pSimpleText);
SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
pSimpleText = new (std::nothrow)TextSimple(null, 0, TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
SysTryReturn(NID_UI_CTRL, (pSimpleText != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ pSimpleText->SetTextShadowEnabled(true);
+ pSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
__textObject.AppendElement(*pSimpleText);
__textObject.SetFont(__pFont, 0, __textObject.GetTextLength());
pSimpleText = new (std::nothrow)TextSimple((const_cast <wchar_t*>(text.GetPointer())), text.GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
SysTryReturn(NID_UI_CTRL, (pSimpleText != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ pSimpleText->SetTextShadowEnabled(true);
+ pSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
__textObject.RemoveAll();
if (__isFocused && __focusId == boxId)
{
pOldSimpleText = new (std::nothrow)TextSimple((const_cast <wchar_t*>(__lastSelectedValue.GetPointer())), __lastSelectedValue.GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
SysTryCatch(NID_UI_CTRL, (pOldSimpleText != null), , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ pOldSimpleText->SetTextShadowEnabled(true);
+ pOldSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
pCanvas = pOldVisualElement->GetCanvasN();
r = GetLastResult();
SysTryCatch(NID_UI_CTRL, (pCanvas != null), , r, "[%s] Propagating.", GetErrorMessage(r));
pNewSimpleText = new (std::nothrow)TextSimple((const_cast <wchar_t*>(newValue.GetPointer())), newValue.GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
SysTryCatch(NID_UI_CTRL, (pNewSimpleText != null), , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ pNewSimpleText->SetTextShadowEnabled(true);
+ pNewSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
pCanvas = pNewVisualElement->GetCanvasN();
r = GetLastResult();
SysTryCatch(NID_UI_CTRL, (pCanvas != null), , r, "[%s] Propagating.", GetErrorMessage(r));
(_FontImpl::GetInstance(*__pFont))->SetSize(__timeFontSize);
+ pSimpleText->SetTextShadowEnabled(true);
+ pSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
dateObject.AppendElement(*pSimpleText);
dateObject.SetFont(__pFont, 0, dateObject.GetTextLength());
dim = dateObject.GetTextExtentF(0, dateObject.GetTextLength());
SysTryReturn(NID_UI_CTRL, (pSimpleText != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY,
"[E_OUT_OF_MEMORY] Memory allocation failed.");
+ pSimpleText->SetTextShadowEnabled(true);
+ pSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
__textObject.AppendElement(*pSimpleText);
__textObject.SetFont(__pFont, 0, __textObject.GetTextLength());
__textObject.RemoveAll();
(_FontImpl::GetInstance(*__pFont))->SetSize(__timeFontSize);
+
+ pSimpleText->SetTextShadowEnabled(true);
+ pSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
__textObject.AppendElement(*pSimpleText);
if (boxId == DATETIME_ID_AMPM)
pOldSimpleText = new (std::nothrow)TextSimple((const_cast <wchar_t*>(__lastSelectedValue.GetPointer())), __lastSelectedValue.GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
SysTryCatch(NID_UI_CTRL, (pOldSimpleText != null), , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ pOldSimpleText->SetTextShadowEnabled(true);
+ pOldSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
pCanvas = pOldVisualElement->GetCanvasN();
r = GetLastResult();
SysTryCatch(NID_UI_CTRL, (pCanvas != null), , r, "[%s] Propagating.", GetErrorMessage(r));
pNewSimpleText = new (std::nothrow)TextSimple((const_cast <wchar_t*>(newValue.GetPointer())), newValue.GetLength(), TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL);
SysTryCatch(NID_UI_CTRL, (pNewSimpleText != null), , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ pNewSimpleText->SetTextShadowEnabled(true);
+ pNewSimpleText->SetTextShadowOffset(FloatPoint(0.0f, -1.0f));
+
pCanvas = pNewVisualElement->GetCanvasN();
r = GetLastResult();
SysTryCatch(NID_UI_CTRL, (pCanvas != null), , r, "[%s] Propagating.", GetErrorMessage(r));