*(pButton->GetBitmap(_BUTTON_STATUS_SELECTED)));
}
+ if (pButton->GetEffectBitmap(_BUTTON_STATUS_NORMAL) != null)
+ {
+ pButton->SetEffectBitmap(_BUTTON_STATUS_NORMAL,
+ FloatPoint((buttonItemWidth - (leftTouchMargin + rightTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_NORMAL))->GetWidthF()) / 2,
+ (buttonItemHeight - (topTouchMargin + bottomTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_NORMAL))->GetHeightF()) / 2),
+ *(pButton->GetEffectBitmap(_BUTTON_STATUS_NORMAL)));
+ }
+
+ if (pButton->GetEffectBitmap(_BUTTON_STATUS_PRESSED) != null)
+ {
+ pButton->SetEffectBitmap(_BUTTON_STATUS_PRESSED,
+ FloatPoint((buttonItemWidth - (leftTouchMargin + rightTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_PRESSED))->GetWidthF()) / 2,
+ (buttonItemHeight - (topTouchMargin + bottomTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_PRESSED))->GetHeightF()) / 2),
+ *(pButton->GetEffectBitmap(_BUTTON_STATUS_PRESSED)));
+ }
+ if (pButton->GetEffectBitmap(_BUTTON_STATUS_HIGHLIGHTED) != null)
+ {
+ pButton->SetEffectBitmap(_BUTTON_STATUS_HIGHLIGHTED,
+ FloatPoint((buttonItemWidth - (leftTouchMargin + rightTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_HIGHLIGHTED))->GetWidthF()) / 2,
+ (buttonItemHeight - (topTouchMargin + bottomTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_HIGHLIGHTED))->GetHeightF()) / 2),
+ *(pButton->GetEffectBitmap(_BUTTON_STATUS_HIGHLIGHTED)));
+ }
+ if (pButton->GetEffectBitmap(_BUTTON_STATUS_DISABLED) != null)
+ {
+ pButton->SetEffectBitmap(_BUTTON_STATUS_DISABLED,
+ FloatPoint((buttonItemWidth - (leftTouchMargin + rightTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_DISABLED))->GetWidthF()) / 2,
+ (buttonItemHeight - (topTouchMargin + bottomTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_DISABLED))->GetHeightF()) / 2),
+ *(pButton->GetEffectBitmap(_BUTTON_STATUS_DISABLED)));
+ }
+ if (pButton->GetEffectBitmap(_BUTTON_STATUS_SELECTED) != null)
+ {
+ pButton->SetEffectBitmap(_BUTTON_STATUS_SELECTED,
+ FloatPoint((buttonItemWidth - (leftTouchMargin + rightTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_SELECTED))->GetWidthF()) / 2,
+ (buttonItemHeight - (topTouchMargin + bottomTouchMargin) - (pButton->GetEffectBitmap(_BUTTON_STATUS_SELECTED))->GetHeightF()) / 2),
+ *(pButton->GetEffectBitmap(_BUTTON_STATUS_SELECTED)));
+ }
+
return E_SUCCESS;
}
{
ADD_COLOR_CONFIG(BG_NORMAL, $W011);
ADD_COLOR_CONFIG(BG_DISABLED, $W011);
- ADD_COLOR_CONFIG(BG_PRESSED, $B041);
+ ADD_COLOR_CONFIG(BG_PRESSED, $B042);
ADD_COLOR_CONFIG(BG_HIGHLIGHTED, $B042);
ADD_COLOR_CONFIG(TEXT_NORMAL, $F031L1);