}
}
+ if (pControl->GetElement(L"HighlightedBitmapPath", elementString))
+ {
+ Bitmap* pHighlightedBitmap = null;
+ FloatPoint position;
+ pHighlightedBitmap = LoadBitmapN(elementString);
+ if (pControl->GetElement(L"HighlightedBitmapX", elementString))
+ {
+ position.x = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ if ((position.x < 0.0f) || (position.x > ((Control*) (GetContainer()))->GetBoundsF().width - ((Control*) (GetContainer()))->GetBoundsF().x))
+ {
+ position.x = 0.0f;
+ }
+ }
+
+ if (pControl->GetElement(L"HighlightedBitmapY", elementString))
+ {
+ position.y = _CoordinateSystemUtils::ConvertToFloat(elementString);
+ if (position.y < 0.0f || (position.y > ((Control*) (GetContainer()))->GetBoundsF().height - ((Control*) (GetContainer()))->GetBoundsF().y))
+ {
+ position.y = 0.0f;
+ }
+ }
+
+ if (pHighlightedBitmap != null)
+ {
+ pButton->SetHighlightedBitmap(position, *pHighlightedBitmap);
+ delete pHighlightedBitmap;
+ }
+ }
+
if (pControl->GetElement(L"NormalBGBitmapPath", elementString))
{
Bitmap* pNormalBGBitmap = null;
}
}
+ if (pControl->GetElement(L"DisabledBGBitmapPath", elementString))
+ {
+ Bitmap* pDisabledBGBitmap = null;
+ pDisabledBGBitmap = LoadBitmapN(elementString);
+ if (pDisabledBGBitmap != null)
+ {
+ pButton->SetDisabledBackgroundBitmap(*pDisabledBGBitmap);
+ delete pDisabledBGBitmap;
+ }
+ }
+
if (pControl->GetElement(L"highlightedTextColor", elementString))
{
ConvertStringToColor(elementString, color);