imagePath = _BitmapImpl::GetInstance(*pBitmap)->GetFileName();
}
- if(!imagePath.IsEmpty())
+// if(!imagePath.IsEmpty())
+// {
+// __pVisualElement->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
+// __pVisualElement->SetImageSource(imagePath);
+// }
+// else
{
- __pVisualElement->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
- __pVisualElement->SetImageSource(imagePath);
- }
- else
- {
- __pVisualElement->SetImageSource(L"");
+// __pVisualElement->SetImageSource(L"");
pCanvas = __pAnimation->GetCanvasN();
SysTryReturnResult(NID_UI_CTRL, pCanvas != null, E_SYSTEM, "A system error has occurred. Failed to get the animation canvas.");
imagePath = _BitmapImpl::GetInstance(*pBackgroundBitmap)->GetFileName();
}
- if (imagePath.IsEmpty() == false && __pButton->GetText() == L""
- && __pButton->GetBitmap(_BUTTON_STATUS_NORMAL) == null && __pButton->GetBitmap(_BUTTON_STATUS_DISABLED) == null
- && __pButton->GetBitmap(_BUTTON_STATUS_PRESSED) == null && __pButton->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED) == null)
+// if (imagePath.IsEmpty() == false && __pButton->GetText() == L""
+// && __pButton->GetBitmap(_BUTTON_STATUS_NORMAL) == null && __pButton->GetBitmap(_BUTTON_STATUS_DISABLED) == null
+// && __pButton->GetBitmap(_BUTTON_STATUS_PRESSED) == null && __pButton->GetBitmap(_BUTTON_STATUS_HIGHLIGHTED) == null)
+// {
+// __pBase->SetBackgroundColor(_Colorf(
+// (float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
+// __pBase->SetImageSource(imagePath);
+// }
+// else
{
- __pBase->SetBackgroundColor(_Colorf(
- (float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
- __pBase->SetImageSource(imagePath);
- }
- else
- {
- __pBase->SetImageSource(L"");
+// __pBase->SetImageSource(L"");
pCanvas = __pButton->GetCanvasN();
if (pCanvas == null)
{
String imagePath = _BitmapImpl::GetInstance(bitmap)->GetFileName();
- if (!imagePath.IsEmpty())
+// if (!imagePath.IsEmpty())
+// {
+// __pTouchAniVE->SetImageSource(imagePath);
+// }
+// else
{
- __pTouchAniVE->SetImageSource(imagePath);
- }
- else
- {
- __pTouchAniVE->SetImageSource(L"");
+// __pTouchAniVE->SetImageSource(L"");
Canvas* pCanvas = __pTouchAniVE->GetCanvasN();
SysTryReturn(NID_UI_CTRL, pCanvas != null, GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
{
String imagePath = _BitmapImpl::GetInstance(*pBackgroundBitmap)->GetFileName();
- if (!imagePath.IsEmpty())
+// if (!imagePath.IsEmpty())
+// {
+// __pVE->SetImageSource(imagePath);
+// }
+// else
{
- __pVE->SetImageSource(imagePath);
- }
- else
- {
- __pVE->SetImageSource(L"");
+// __pVE->SetImageSource(L"");
Canvas* pCanvas = __pVE->GetCanvasN();
SysTryCatch(NID_UI_CTRL, (pCanvas!= null), , GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
pCanvas->SetBackgroundColor(backgroundColor);
{
String imagePath = _BitmapImpl::GetInstance(*pBitmap)->GetFileName();
- if (!imagePath.IsEmpty())
- {
- __pEmptyListVE->SetImageSource(imagePath);
- }
- else
+// if (!imagePath.IsEmpty())
+// {
+// __pEmptyListVE->SetImageSource(imagePath);
+// }
+// else
{
- __pEmptyListVE->SetImageSource(L"");
+// __pEmptyListVE->SetImageSource(L"");
pCanvas = __pEmptyListVE->GetCanvasN();
SysTryCatch(NID_UI, pCanvas != null, , GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
imagePath = _BitmapImpl::GetInstance(*pBitmap)->GetFileName();
}
- if (imagePath.IsEmpty() == false && __pLabel->GetText() == L"")
+// if (imagePath.IsEmpty() == false && __pLabel->GetText() == L"")
+// {
+// __pBase->SetBackgroundColor(_Colorf(
+// (float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
+
+// __pBase->SetImageSource(imagePath);
+// }
+// else
{
- __pBase->SetBackgroundColor(_Colorf(
- (float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
-
- __pBase->SetImageSource(imagePath);
- }
- else
- {
- __pBase->SetImageSource(L"");
+// __pBase->SetImageSource(L"");
pCanvas = __pLabel->GetCanvasN();
if (pCanvas == null)
imagePath = _BitmapImpl::GetInstance(*pBackgroundBitmap)->GetFileName();
}
- if(!imagePath.IsEmpty())
+// if(!imagePath.IsEmpty())
+// {
+// __pSearchBar->GetVisualElement()->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
+// __pSearchBar->GetVisualElement()->SetImageSource(imagePath);
+// }
+// else
{
- __pSearchBar->GetVisualElement()->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
- __pSearchBar->GetVisualElement()->SetImageSource(imagePath);
- }
- else
- {
- __pSearchBar->GetVisualElement()->SetImageSource(L"");
+// __pSearchBar->GetVisualElement()->SetImageSource(L"");
Canvas* pCanvas = __pSearchBar->GetCanvasN();
r = GetLastResult();
SysTryReturn(NID_UI_CTRL, (pCanvas != null), r, r, "[%s] Propagating.", GetErrorMessage(r));
imagePath = _BitmapImpl::GetInstance(*pDrawBitmap)->GetFileName();
}
- if (imagePath.IsEmpty() == false)
- {
- __pBitmapVisualElement->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
- __pBitmapVisualElement->SetImageSource(imagePath);
- }
- else
+// if (imagePath.IsEmpty() == false)
+// {
+// __pBitmapVisualElement->SetBackgroundColor(_Colorf((float)bgColor.GetRed() / 255, (float)bgColor.GetGreen() / 255, (float)bgColor.GetBlue() / 255, (float)bgColor.GetAlpha() / 255));
+// __pBitmapVisualElement->SetImageSource(imagePath);
+// }
+// else
{
pCanvas = __pBitmapVisualElement->GetCanvasN();
SysTryCatch(NID_UI_CTRL, pCanvas != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");