Languages

Menu
Sites
Language
SplitPanel with multiple second panes

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 by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 Replies
muditha murthy
hi, If you want to implement the above scenario using scene manager transitions then i guess you can use Tab-style Panel Transitions (refer Tizen Native App Programming > Programming Guide > UI: Creating the Application UI > Scene Management). or you have to first add the split panel to the form. And to the first pane add a panel, to the second pane add one more split panel and to this split panel you can add the subsequent first panel and second panel.