HorizontalAlignment horizontalAlignment = ALIGNMENT_LEFT;
bool viewModeEnable = false;
bool commandButtonVisible = false;
- int fontSize = 0;
+ float fontSize = 0.0f;
Color color;
int opacity = EDIT_COLOR_OPACITY;
- int horizontalMargin = 0;
- int verticalMargin = 0;
+ float horizontalMargin = 0.0f;
+ float verticalMargin = 0.0f;
GetProperty(pControl, &pControlProperty);
if (pControlProperty == null)
if (pControl->GetElement(L"textSize", elementString))
{
- Base::Integer::Parse(elementString, fontSize);
+ Base::Float::Parse(elementString, fontSize);
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
if (pControl->GetElement(L"horizontalMargin", elementString))
{
- Base::Integer::Parse(elementString, horizontalMargin);
+ Base::Float::Parse(elementString, horizontalMargin);
r = pEditArea->SetMargin(EDIT_MARGIN_TYPE_HORIZONTAL, horizontalMargin);
}
if (pControl->GetElement(L"verticalMargin", elementString))
{
- Base::Integer::Parse(elementString, verticalMargin);
+ Base::Float::Parse(elementString, verticalMargin);
r = pEditArea->SetMargin(EDIT_MARGIN_TYPE_VERTICAL, verticalMargin);
}
HorizontalAlignment horizontalAlignment = ALIGNMENT_LEFT;
bool viewModeEnable = false;
bool commandButtonVisible = false;
- int fontSize = 0;
+ float fontSize = 0.0f;
Color color;
int opacity = EDIT_COLOR_OPACITY;
EditFieldStyle editFieldStyle = EDIT_FIELD_STYLE_NORMAL;
EditFieldTitleStyle editFieldTitleStyle = EDIT_FIELD_TITLE_STYLE_NONE;
bool clearButtonEnable = false;
bool newConstructEnable = false;
- int horizontalMargin = 0;
- int verticalMargin = 0;
+ float horizontalMargin = 0.0f;
+ float verticalMargin = 0.0f;
EllipsisPosition ellipsisPosition = ELLIPSIS_POSITION_END;
GetProperty(pControl, &pControlProperty);
if (pControl->GetElement(L"textSize", elementString))
{
- Base::Integer::Parse(elementString, fontSize);
+ Base::Float::Parse(elementString, fontSize);
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
if (pControl->GetElement(L"horizontalMargin", elementString))
{
- Base::Integer::Parse(elementString, horizontalMargin);
+ Base::Float::Parse(elementString, horizontalMargin);
r = pEditField->SetMargin(EDIT_MARGIN_TYPE_HORIZONTAL, horizontalMargin);
}
if (pControl->GetElement(L"verticalMargin", elementString))
{
- Base::Integer::Parse(elementString, verticalMargin);
+ Base::Float::Parse(elementString, verticalMargin);
r = pEditField->SetMargin(EDIT_MARGIN_TYPE_VERTICAL, verticalMargin);
}
__isTextBlocked = false;
+ InitializeCopyPasteManager();
+
return r;
}
bool
_EditPresenter::OnFocusLost(void)
{
- InitializeCopyPasteManager();
+ if (!__pEdit->IsDestroyed())
+ {
+ InitializeCopyPasteManager();
+ }
if (__isAutoShrinkEnabled)
{
KeypadStyle keypadStyle = KEYPAD_STYLE_NORMAL;
int maxLines = 10;
String guideText;
- int verticalMarin = 0;
- int horizontalMargin = 0;
+ float verticalMarin = 0.0f;
+ float horizontalMargin = 0.0f;
String text;
- int textSize = 6;
+ float textSize = 6.0f;
String titleText;
int limitLength = 0;
int opacity = 100;
if (pControl->GetElement(L"textSize", elementString))
{
- Base::Integer::Parse(elementString, textSize);
+ Base::Float::Parse(elementString, textSize);
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
if (pControl->GetElement(L"verticalMargin", elementString))
{
- Base::Integer::Parse(elementString, verticalMarin);
+ Base::Float::Parse(elementString, verticalMarin);
r = pExpandableEditArea->SetMargin(EDIT_MARGIN_TYPE_VERTICAL, verticalMarin);
}
if (pControl->GetElement(L"horizontalMargin", elementString))
{
- Base::Integer::Parse(elementString, horizontalMargin);
+ Base::Float::Parse(elementString, horizontalMargin);
r = pExpandableEditArea->SetMargin(EDIT_MARGIN_TYPE_HORIZONTAL, horizontalMargin);
}
String text;
Color color;
int opacity = 100;
- int textSize = 0;
- int lineSpacingExtra = 0;
+ float textSize = 0.0f;
+ float lineSpacingExtra = 0.0f;
int lineSpacingMultiplier = 1;
String elementString;
if (pControl->GetElement("textSize", elementString))
{
- Base::Integer::Parse(elementString, textSize);
+ Base::Float::Parse(elementString, textSize);
_ICoordinateSystemTransformer* pTransform = GetTransformer();
if (pTransform)
{
if (pControl->GetElement("lineSpacingExtra", elementString))
{
- Base::Integer::Parse(elementString, lineSpacingExtra);
+ Base::Float::Parse(elementString, lineSpacingExtra);
if (pControl->GetElement("lineSpacingMultiplier", elementString))
{