diff options
author | jaewon7.cho <jaewon7.cho@samsung.com> | 2013-04-18 23:06:26 +0900 |
---|---|---|
committer | jaewon7.cho <jaewon7.cho@samsung.com> | 2013-04-18 23:06:26 +0900 |
commit | e90621c36c321b42cb376672d2561348ad02b787 (patch) | |
tree | afe59d0536bff34848c96a323dee310fcb089038 /project/src/CheckButtonForm.cpp | |
parent | ea9985a460291c5c438b0155f7efd598e9d25c8c (diff) | |
download | UiControls-e90621c36c321b42cb376672d2561348ad02b787.tar.gz UiControls-e90621c36c321b42cb376672d2561348ad02b787.tar.bz2 UiControls-e90621c36c321b42cb376672d2561348ad02b787.zip |
Align CheckButtons for CheckButton form
Change-Id: I57f5eec527d3aa1c09a6a147fc164340d6e0071e
Signed-off-by: jaewon7.cho <jaewon7.cho@samsung.com>
Diffstat (limited to 'project/src/CheckButtonForm.cpp')
-rw-r--r-- | project/src/CheckButtonForm.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/project/src/CheckButtonForm.cpp b/project/src/CheckButtonForm.cpp index 373e815..c030c93 100644 --- a/project/src/CheckButtonForm.cpp +++ b/project/src/CheckButtonForm.cpp @@ -46,6 +46,24 @@ CheckButtonForm::OnInitializing(void) CheckButton* pCheckButton = static_cast <CheckButton*> (GetControl("IDC_CHECKBUTTON_DISABLE", true)); pCheckButton->SetEnabled(false); + // Align group CheckButtons + CheckButton* pCheckButtonTop = static_cast <CheckButton*> (GetControl("IDC_CHECKBUTTON_GROUP_TOP", true)); + FloatRectangle buttonTopBounds = pCheckButtonTop->GetBoundsF(); + buttonTopBounds = CoordinateSystem::AlignToDevice(buttonTopBounds); + pCheckButtonTop->SetBounds(buttonTopBounds); + + CheckButton* pCheckButtonMiddle = static_cast <CheckButton*> (GetControl("IDC_CHECKBUTTON_GROUP_MIDDLE", true)); + FloatRectangle buttonMiddleBounds = pCheckButtonTop->GetBoundsF(); + buttonMiddleBounds.y = buttonTopBounds.y + buttonTopBounds.height; + buttonMiddleBounds = CoordinateSystem::AlignToDevice(buttonMiddleBounds); + pCheckButtonMiddle->SetBounds(buttonMiddleBounds); + + CheckButton* pCheckButtonBottom = static_cast <CheckButton*> (GetControl("IDC_CHECKBUTTON_GROUP_BOTTOM", true)); + FloatRectangle buttonBottomBounds = pCheckButtonTop->GetBoundsF(); + buttonBottomBounds.y = buttonMiddleBounds.y + buttonMiddleBounds.height; + buttonBottomBounds = CoordinateSystem::AlignToDevice(buttonBottomBounds); + pCheckButtonBottom->SetBounds(buttonBottomBounds); + return r; } |