CONTEXT_MENU_CORE_STYLE_LIST,
CONTEXT_MENU_CORE_ALIGN_UP);
+ __pSubMenu->SetFocusable(true);
+
if (__pSubMenu == null)
{
return GetLastResult();
}
__pSubMenu->Open();
- SetTouchCapture(false, false);
__subMenuIndex = mainIndex;
return E_SUCCESS;
result
_OptionMenu::OnAttachedToMainTree(void)
{
+ if (__pOptionMenuPresenter != null)
+ {
+ __pOptionMenuPresenter->CalculateBounds();
+
+ __pOptionMenuPresenter->PrepareAnimation();
+ __pOptionMenuPresenter->SetOptionMenuVisibility(true);
+ }
+
__pOptionMenuPresenter->OnAttachedToMainTree();
- return E_SUCCESS;
+
+ return _Window::OnAttachedToMainTree();
}
result
void
_OptionMenu::OnActivated(void)
{
- _Window::OnActivated();
-
if (GetOwner() != null)
{
ChangeLayout(GetOwner()->GetOrientation());
ChangeLayout(_ControlManager::GetInstance()->GetOrientation());
}
- if (__pOptionMenuPresenter != null)
- {
- __pOptionMenuPresenter->CalculateBounds();
-
- __pOptionMenuPresenter->PrepareAnimation();
- __pOptionMenuPresenter->SetOptionMenuVisibility(true);
- }
+ SetTouchCapture(true, false);
- SetTouchCapture(false, false);
+ _Window::OnActivated();
}
void
, __selectedIndex(-1)
, __isHandlerPressed(false)
, __isClosing(false)
- , __isAnimationStarted(true)
+ , __isAnimationStarted(false)
, __pOptionMenuVE(null)
, __pThirtyThreeTimingFunction(null)
, __pSixtyTimingFunction(null)
return false;
}
+ SysTryReturn(NID_UI_CTRL, (!__isAnimationStarted), false, E_SUCCESS, "[E_SUCCESS] Animation is in Progress.");
+
if (__pOptionMenu->IsSubMenuShown() == true)
{
__pOptionMenu->DestroySubMenu();