summaryrefslogtreecommitdiff
path: root/project/src/UiFrameModeForm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project/src/UiFrameModeForm.cpp')
-rw-r--r--project/src/UiFrameModeForm.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/project/src/UiFrameModeForm.cpp b/project/src/UiFrameModeForm.cpp
index fba444c..4c8fec9 100644
--- a/project/src/UiFrameModeForm.cpp
+++ b/project/src/UiFrameModeForm.cpp
@@ -114,6 +114,7 @@ UiFrameModeForm::UiFrameModeForm(void)
, __pButton(null)
, __pContextMenu(null)
, __pLabelTouchListener(null)
+ , __pLeftItemBitmap(null)
{
}
@@ -171,6 +172,9 @@ UiFrameModeForm::OnInitializing(void)
SetOrientation(ORIENTATION_AUTOMATIC_FOUR_DIRECTION);
AddOrientationEventListener(*this);
+ AppResource* pAppResource = Application::GetInstance()->GetAppResource();
+ __pLeftItemBitmap = pAppResource->GetBitmapN(L"moreicon.png");
+
SetHeader();
SetFooter();
@@ -180,7 +184,7 @@ UiFrameModeForm::OnInitializing(void)
__pContextMenu = new (std::nothrow) ContextMenu();
__pContextMenu->Construct(FloatPoint(10.0f, rect.height - pFooter->GetHeightF()), CONTEXT_MENU_STYLE_LIST);
- __pContextMenu->AddItem(L"Change to floating mode", ID_CONTEXT_ITEM);
+ __pContextMenu->AddItem(L"Minimize", ID_CONTEXT_ITEM);
__pContextMenu->AddActionEventListener(*this);
return r;
}
@@ -256,8 +260,8 @@ UiFrameModeForm::SetFooter(void)
SetFormBackEventListener(this);
ButtonItem buttonLeftItem;
- buttonLeftItem.Construct(BUTTON_ITEM_STYLE_TEXT, ID_BUTTON_ITEM);
- buttonLeftItem.SetText(L"More");
+ buttonLeftItem.Construct(BUTTON_ITEM_STYLE_ICON, ID_BUTTON_ITEM);
+ buttonLeftItem.SetIcon(BUTTON_ITEM_STATUS_NORMAL, __pLeftItemBitmap);
pFooter->SetButton(BUTTON_POSITION_LEFT, buttonLeftItem);
}
@@ -338,7 +342,7 @@ result
UiFrameModeForm::OnTerminating(void)
{
result r = E_SUCCESS;
-
+ delete __pLeftItemBitmap;
return r;
}