SplitPanel with multiple second panes
By Awais Zaka
14 May 2013 05:38
English
1 Replies
I'm using a SplitPanel and want to switch between two second panels while keeping the first panel fixed. This doesn't appear directly possible with the APIs and an error occurs when trying to redo SetPane with panel1 - also tried hiding / showing child controls within panels. One workaround is to reuse the same second panel and to dynamically create/remove or show/hide child controls within the panel which is messy and want to avoid. Now thinking if this can be done through SceneManager. Anyone tried something similar ?
SplitPanelForm::OnInitializing()
{
AddControl(*__pSplitPanel);
panel1 = new Panel1();
panel1->Initialize();
__pSplitPanel->SetPane(panel1,SPLIT_PANEL_PANE_ORDER_SECOND);
panel2 = new Panel2();
panel2->Initialize();
}
SplitPanelForm::OnUserEventReceived(id)
{
if (id == Event1)
__pSplitPanel->SetPane(panel1,SPLIT_PANEL_PANE_ORDER_SECOND);
// ERROR - Tizen::Ui::_Control::StartAttaching(Tizen::Ui::_Control&, Tizen::Ui::_ControlArea)(1608) > [E_INVALID_ARG] The child control is already attached to this container.
//SetPane(Tizen::Ui::_Control*, Tizen::Ui::Controls::SplitPanelPaneOrder)(399) > [E_INVALID_ARG] Propagating.
else if (id == Event2)
__pSplitPanel->SetPane(panel2,SPLIT_PANEL_PANE_ORDER_SECOND);
}
Edited on 18 03, 2014
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.