From e18f13e53f2f67dff49a57254230328b1ba3cdb1 Mon Sep 17 00:00:00 2001 From: sangsoo lee Date: Wed, 24 Apr 2013 11:52:39 +0900 Subject: [PATCH] modify popup control margin Change-Id: I7fe4fb7deec841a252bfd1049e08e7ff4b501b92 --- src/IstDetailForm.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/IstDetailForm.cpp b/src/IstDetailForm.cpp index 14a4784..8567555 100644 --- a/src/IstDetailForm.cpp +++ b/src/IstDetailForm.cpp @@ -324,6 +324,10 @@ DetailForm::SetPopupControl() pButtonClose->SetPosition(X_CANCEL_BTN_ALONE, pButtonClose->GetY()); __pPopup->AddControl(pButtonClose); + popupLayout.SetRelation(*pTextBox, __pPopup, RECT_EDGE_RELATION_LEFT_TO_LEFT); + popupLayout.SetRelation(*pTextBox, __pPopup, RECT_EDGE_RELATION_TOP_TO_TOP); + popupLayout.SetMargin(*pTextBox, 30, 0, 10, 0); + popupLayout.SetRelation(*pButtonClose, __pPopup, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM); popupLayout.SetCenterAligned(*pButtonClose, CENTER_ALIGN_HORIZONTAL); popupLayout.SetMargin(*pButtonClose, 0, 16, 0, 20); @@ -334,6 +338,10 @@ DetailForm::SetPopupControl() pButtonClose->SetPosition(X_CANCEL_BTN_ALONE, pButtonClose->GetY()); __pPopup->AddControl(pButtonClose); + popupLayout.SetRelation(*pTextBox, __pPopup, RECT_EDGE_RELATION_LEFT_TO_LEFT); + popupLayout.SetRelation(*pTextBox, __pPopup, RECT_EDGE_RELATION_TOP_TO_TOP); + popupLayout.SetMargin(*pTextBox, 30, 0, 10, 0); + popupLayout.SetRelation(*pButtonClose, __pPopup, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM); popupLayout.SetCenterAligned(*pButtonClose, CENTER_ALIGN_HORIZONTAL); popupLayout.SetMargin(*pButtonClose, 0, 16, 0, 20); @@ -344,9 +352,14 @@ DetailForm::SetPopupControl() __pPopup->AddControl(pButtonInstall); __pPopup->AddControl(pButtonClose); + popupLayout.SetRelation(*popUpLabel, __pPopup, RECT_EDGE_RELATION_LEFT_TO_LEFT); + popupLayout.SetRelation(*popUpLabel, __pPopup, RECT_EDGE_RELATION_TOP_TO_TOP); + popupLayout.SetMargin(*popUpLabel, 30, 0, 10, 0); + popupLayout.SetRelation(*pButtonInstall, __pPopup, RECT_EDGE_RELATION_LEFT_TO_LEFT); popupLayout.SetRelation(*pButtonInstall, __pPopup, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM); popupLayout.SetMargin(*pButtonInstall, 16, 0, 0, 20); + popupLayout.SetRelation(*pButtonClose, __pPopup, RECT_EDGE_RELATION_RIGHT_TO_RIGHT); popupLayout.SetRelation(*pButtonClose, __pPopup, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM); popupLayout.SetMargin(*pButtonClose, 0, 16, 0, 20); -- 2.7.4