Languages

Menu
Sites
Language
Natif SceneManager

Hi,

About the Scenemanager and the method setCurrentFrame:

1) Is there only these two ways to make transition between the forms?

As I understand, it is impossible to parametrize the Form construction using a Scenemanager.
For example, the first form is a list of News and the second is the news details. The second form needs the News Object inside his constructor. Using SetCurrentForm it is easy. But with the SceneManager, it seems impossible to achieve since the signature of the method cannot provide an object parameter:

Tizen::Ui::Controls::Form* FormFactory::CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId){...}

2) Am I wrong, and can we construct the form with parameters using SceneManager ?

 

Thx!

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

7 Replies
wil smith
Have a look into the SDK sample SceneMangaement, this could be the solution to your issue
Ben Delv
Hi, thanks. Yes I already did. But to put an example you have this code to create a form: InformationForm* pForm = new (std::nothrow) InformationForm(); What a want is something like this: InformationForm* pForm = new (std::nothrow) InformationForm(myData); But as the creation is made from two id but never data, I do not know how to make 2nd details screen, except with setCurrentForm
Zoltan Puski
Do not pass the parameter in the constructor, you have to pass the parameter in the SceneManager::GoForward() or SceneManager::GoBackward()
Ben Delv
Do you mean I can put my CustomObject NewsItem in GoForward() to give the data to the details Page? So the page will display the specific view for the News Item. The signature of GoForward does not allow this. There must be some kind of way to provide whatever data object to the SceneManagement system to allow it to launch the page with its content parameters.
Zoltan Puski
> "The signature of GoForward does not allow this." Really? Then what is the 2nd parameter in the GoForward()? result GoForward (const SceneTransitionId &transitionId, const Tizen::Base::Collection::IList *pArgs=null)
Ben Delv
Ok, now I feel like stupid. Everything is self explicit when I discovered OnSceneActivatedN(...)
Ben Delv
Thank you Zoltan