Languages

Menu
Sites
Language
How to make a panel from several resource files?

Hi there.

There are 3 panels panel.xml panel2.xml panel3.xml in my project. I'd like to combine them to one panel. But I can't do this in UI Native Builder.

So can I create a panel which be constructed from a several .xml files?

Something like that...

class MyPanel : public Panel {
   MyPanel() {
      Construct(L"panel", L"panel2", L"panel3");
   } ...

 

Thanks.

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

Responses

1 Replies
dhirku
You can create multiple panels in UI builder, Then in code using " result Panel ::Construct (const Tizen::Base::String &resourceId) " method you create an object of one panel. Use this method on all the Panel*.xml to get object of all the Panels individually. Once you have all the objects you can add these to the Form using "Form::AddControl(....)" method.