Help me, create a new page of the current page TabbedPane

I want when I touch the tab on a new page. Here is my source:

hand. QML

import bb.cascades 1.0
TabbedPane {}
showTabsOnActionBar: false
Tab {//First tab
Text located with the dynamic translation and locale update support
Title: qsTr ("Blackberry") + Retranslate.onLocaleOrLanguageChanged
imageSource: "asset:///pic/ic_bbm.png."
ActionBar.placement: ActionBarPlacement.InOverflow
{Page}
actions:]
{ActionItem}
ID: action2
Title: qsTr ("About") + Retranslate.onLocaleOrLanguageChanged
imageSource: "asset:///pic/ic_info.png."
ActionBar.placement: ActionBarPlacement.InOverflow
}
]
title bar: title {} bar
Title: "a tab.
}
{Of container
{Label
text: qsTr ("first tab") + Retranslate.onLocaleOrLanguageChanged
}
}
}
} //End of the first tab
Tab {tab //Second
Title: qsTr ("Search") + Retranslate.onLocaleOrLanguageChanged
imageSource: "asset:///pic/ic_search.png."
ActionBar.placement: ActionBarPlacement.InOverflow
{Page}
title bar: title {} bar
Title: 'two Tab.
}
{Of container
{Label
text: qsTr ("second tab") + Retranslate.onLocaleOrLanguageChanged
}
}
}
} //End of the second tab
Tab {tab //Three
Title: qsTr ("Share") + Retranslate.onLocaleOrLanguageChanged
imageSource: "asset:///pic/ic_share.png."
ActionBar.placement: ActionBarPlacement.InOverflow
{Page}
title bar: title {} bar
Title: 'Tab three.
}
{Of container
{Label
text: qsTr ("second tab") + Retranslate.onLocaleOrLanguageChanged
}
}
}
} //End of three tab
}

about. QML


import bb.cascades 1.0
{Page}
anyone ranging from property;
{Of container
verticalAlignment: VerticalAlignment.Center
horizontalAlignment: P
topPadding: 50
background: Color.create ("#000000")
ImageView {}
horizontalAlignment: P
imageSource: "asset:///pic/ducdaubb.jpg."
preferredWidth: 500
preferredHeight: 500
}
{Label
textStyle.base: SystemDefaults.TextStyles.BigText
textStyle.fontWeight: FontWeight.Normal
text: "Radio Indonesia."
horizontalAlignment: P
textStyle.color: Color.White
}
{Label
textStyle.base: SystemDefaults.TextStyles.BigText
horizontalAlignment: P
textStyle.fontWeight: FontWeight.Default
text: 'Version 20141.
textStyle.color: Color.White
textStyle.fontSize: FontSize.XLarge
}
{Label
textStyle.base: SystemDefaults.TextStyles.BodyText
horizontalAlignment: P
textStyle.fontWeight: FontWeight.Normal
textStyle.fontSize: FontSize.Large
text: "Copyright 2014-2015.
textStyle.color: Color.DarkGray
}
{Label
textStyle.base: SystemDefaults.TextStyles.BodyText
horizontalAlignment: P
textStyle.fontSize: FontSize.Large
text: "Devoloper by 1Pro.
textStyle.color: Color.LightGray
}
{Label
textStyle.base: SystemDefaults.TextStyles.BigText
horizontalAlignment: P
textStyle.fontSize: FontSize.XLarge
textStyle.fontWeight: FontWeight.Normal
text: qsTr ("http://radio.com.id")
textStyle.color: Color.create ("#087099")
Multiline: false
}
} / / Container
} / / Page

Thank you

You need NavigationPane if you want to push new page (average).

For example:

Tab { //First tab
    title: qsTr("Blackberry") + Retranslate.onLocaleOrLanguageChanged
    imageSource: "asset:///pic/ic_bbm.png"
    ActionBar.placement: ActionBarPlacement.InOverflow
    NavigationPane{
        Page {
            actions: [
                ActionItem {
                    id: action2
                    title: qsTr("About") + Retranslate.onLocaleOrLanguageChanged
                    imageSource: "asset:///pic/ic_info.png"
                    ActionBar.placement: ActionBarPlacement.InOverflow
                }
                ]
...................

then in your page add ComponentDefinition to attachedObjects of the page

YourPage{

    attachedObjects: [
         ComponentDefinition {
             id: aboutPage
             source: "About.qml"
         }
     ]
}

and finally, to push the new on the page.

ActionItem{
    title: qsTr("About")
    onTriggered:{
        activePane.push(aboutPage.createObject())
    }
}

It may be useful

For more information, see this

https://developer.BlackBerry.com/native/documentation/Cascades/best_practices/dynamic_qml/

Tags: BlackBerry Developers

Similar Questions

  • quick method to create a new layer under the current layer?

    would be the best way to quickly create a new layer slot rather than above the active layer to assign a script to a keyboard shortcut - or is it possible to change the default new layer shortcut (command + option + SHIFT + N) to create a new layer above the current layer to create rather a under the active layer?

    Thank you

    Command-click the new layer in the layers Panel button.

  • Help to create a 'News' page please!

    I want to create a News Page, which will display only lines 5 or 6 first in an article and is followed by a link "read more" and directs the reader to another page.

    So far, I created a page with a form that allows the administrator to easily add items to the database. And I created the News Page using a table and repeating recordset.

    What I don't know is how to display ONLY the first lines of the article without having to make another field in my database which contains only the first paragraph of article. Any ideas?

    I'm trying to do this as a user friendly to the person article inputing so they do not need to divide the article, or do too much editing before sticking in the original form.

    Please note: I am new to web design and I have very limited knowledge of the code. I do this throughout the design view in Dreamweaver CS3. And I'm using php.

    Hi you would insert it as follows: -.

    $query_rsNews = "SELECT SUBSTR ('Article', 0.10), 'Date', title OF news";

    The SUBSTR tells your database to retrieve only the 10 fist words in the table to section of your database, (change the 10 number of words you need).

    PZ

  • I need help to create a new partition of the drive c. main on my laptop

    OK, I already tried to create a new partition and it did, but the new partition I created has become "unallocated" I don't know why, I have read the information online and they say that you cannot remove a player from the "unallocated" partition, so I am trying to create a new partition on this drive "unallocated". when its almost finished, I get warning all the time

    the operation you selected will convert the disk from basic to dynamic disk selected s. If you want to convert the disks to dynamic disks, you will not be able to boot operating systems from any volumes on the s drive (except the current boot volume). Are you sure you want to continue?

    I want to create a new partition on this disc, please help

    When I click Yes, it brings an error message saying, the 'dynamic disks are not supported on this operating system.

    I use Windows Vista Home premium

    http://www.Vistax64.com/tutorials/95398-disk-management-shrink-partition.html

    http://www.Vistax64.com/tutorials/95418-disk-management-delete-extend.html

    Good info on above links.

    Read the related links section, also.

    Unallocated space is what it says it is: nothing.

    Normally, you right click on your existing drive > extend the Volume > makes a great.

    Or follow the instructions at the link above to make a second Partition to unallocated space...

    See you soon... Mick Murphy - Microsoft partner

  • Creating a new catalog with the current settings?

    I would like to create multiple catalogs, rather than keeping a huge catalog.  My problem is, when I create a new catalog that all parameters have a default value.  Is there a way to create a catalog and keep my existing settings?  If not, could I hope LR3?

    Thank you

    -Mark

    Copy a lrcat file and open it, and then delete all the images of him. You can then use this empty catalog you want.

    Consider, however, what you do - break control of your picture collection. Instead, you are better off Managing photos in a catalog and by optimizing and saving regularly. You can always sup divide your photos using keywords and collections smart and dumb.

    It's the same thing in LR3 Beta when there was an effort to improve the functioning of the large catalogs, does not facilitate any fragmentation.

    John

  • The updated Photoshop "freezes" when I click on open or create a new page.

    The updated Photoshop "freezes" when I click on open or create a new page. I have to wait a minute or two and then work. Everything works normally. When I press file / open - new 'freeze '. I did the last update.

    Hi damijant,

    Suggest make you in Photoshop preferences > General > uncheck "Show workspace start when no documents are open" > restart Photoshop and check again.

    Let us know if that helps.

    Kind regards

    ~ Mohit

  • How to stop Contribute CS5 adding a paragraph when you create a new page via "copy of the current page.

    When I create a new page via 'Copy of the current page', the new page always gets an additional line of code. Contribute CS5 adds a paragraph that pushes my browsing down in the content area of my site. Can someone please help me get to stop this?

    <!--

    Code on the original page:

    < body >

    < div id = "container" >

    < div id = "header" >

    < div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >

    < div class = "navigation" >

    Code on the new page:

    < body >

    < div id = "container" >

    < div id = "header" >

    < div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >

    < style p = "margin-top: 0;" margin-bottom: 0; ' > < / p >

    < div class = "navigation" >


    ->

    If you are going to administer websites > users and roles > choose > change role settings > Editing > paragraph spacing, you put a line or two lines?

    If a line, select the two lines.

  • How to create a new page when the user activates a box?

    I guess this would be a checkbox.  I am looking for a way to create a user, select Create a new page when the user runs out of space in the text box that is given.  So if possible is a way to create a new page with a text box continuous when the user selects create it a new page check box.  Thank you.

    Yes, if you create a new page in the designer of the LC (page 2) and deselect the number of minutes, so that when the form is displayed at the start, it is not an instance of the page. While the click event of the button would be:

    _page2.addInstance(true);
    

    You can design page 2 with which opposes always desired.

    Hope that helps,

    Niall

  • [JDev 12.1.3] The difference between the Type of Document "Facelets" and "JSP XML" when you create a new page?

    Hallo,

    that is the difference between choosing as a Type of Document "Facelets" and choosing "JSP XML" when you create a new page?

    Which is the best choiche and why? And is it possible to convert a page from one type to another?

    Thank you

    Federico

    Hi Federico

    JSPX both Faceletes are equal to the feature and after Jdev Release11gR2, both are supported in the ADF

    Facelets is deemed be better performance because it is more tight integrated with life cycle JSf and does not need to be compiled before running

    The future speaks Facelets (specification of JSF) and if start you a new project in development with JDeveloper 11 g R2 then we recommend you use Facelets for this reason

    See this good discussion -Diff b\w JSF and JSPX

    Thank you

  • How and where to use Java script to create a new button in the page of detail of the object

    Hi all

    I want to create "New/Add button" in the page of detail of the object. If I'm not mistaken I need to use the java script for this, but could you please let me know how and where to use Java script to create a new button in the page of detail of the CRMOD object.

    Thanks in advance.

    Kind regards
    Manish

    Any related object on the details of the page should have an 'Add' or 'New' or the two default buttons - it of a vanilla feature and will do the required action.

    If you want to change this behavior and do something delicate you will potentially have to to go for javascript. You must add the javascript code in a web custom tab on this object.

    Admin--> Application Customization--> Contact--> Applet Web Contact

    Now add your javascript in the code box, after selecting the type = HTML for this web applet, expose this web applet on the Contact details page layout and your javascript will be called every time this page is loaded.

    Check this document online to see how javascript can be integrated into the CRM on demand http://helponmyproject.com/TTOCOD/

    See you soon!
    Royston

  • How to create a new folder in the voice tab 7 hp slate

    How to create a new folder in the voice tab 7 hp slate?

    I wish to cretae a folder in my home page.

    Please help me...

    Hello and welcome to the HP support community!

    You want to organize your icons in folders, or put a shortcut of data on your home page folder?

    The first is easy, this last not so much.

    Just hold your finger on an icon, and then drag it on another similar icon.  A "folder" will be done with the name "unnamed file".  Press and hold the words to change the name of the folder.

    I'm not aware of a way to file a record of data on the homepage...

    WyreNut

  • I don't have a blank page option when you try to create a new page

    I don't have a blank page option when you try to create a new page, what should I do?

    When questions about the user interface, it helps if you say that you are using which version of Dreamweaver. It sounds as if you are using the latest version of Dreamweaver CC, but try to follow instructions written for an older version. This is the new Document dialog box in Dreamweaver CC 2015:

    New Document has replaced the White Page in older versions. To get a blank page, select New Document in the left column, HTML as a Type of Document and there is no tab for framework.

  • I need to update the screenshots for a new version of an app existing Itune application to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    I need to update the screenshots for a new version of an existing iTunes Connect App asks me to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    You must call the assistance of the company and ask them to help you with this. You can find contact information by logging on http://digitalpublishing.acrobat.com/ and looking at the Middle at the bottom of the page.

    Neil

  • Why dreamweaver wants to replace my existing css file when you create a new page

    I created a Web site and I can not dreamweaver to accept my existing css file when I create a new page in the same Web site.  I click on file, create new page, I select page fluid and in the lower right, click on the link to an existing css file and click ok, but dreamweaver tells me so my css file does not exist and wants to replace my existing css file? What's happening?

    Thank you guys for this report we

    It's a little surprising that it is the way it is for a while now. Rather than create a fg with the attached css html, DW invites you to create a new css / replace the existing one. Why?

    The part confusing here is that the "css Attach leader"offers two options.

    1. fix like a normal CSS

    2. attach like a css FG

    If you check the preference to "Join as fluid grid CSS" (see attachment) you should not see this question.

    that is, unless you attach the css like a css FG, DW treats like any other css and waiting for you to bind one another css FG

    However, I'm too confused at first until I realized the difference. Hope this helps

    And thank you for bringing this to our notice

    .. Henin :)

  • Is it possible to create a new file using the XML via java Script?

    Hello everyone,

    Is it possible to create a new file using the XML via java Script

    • I have xml information that need to use for file name, size.
    • Based on xml file we can create a new file in InDesign with java script?
    • Kindly help me if anyone has an idea about this.

    I use InDesign CS4 on windows 7

    Sample file is attached below.

    Kind regards

    Siva

    <UpdateAd>
    <AdId>3403699</AdId>
    <Width type="mm">91,79</Width>
    <Height type="mm">80,00</Height>
    <ProductionCategory>4</ProductionCategory>
    <BookedCCIColors>sw</BookedCCIColors>
    <WorkFlowType>PDF</WorkFlowType>
    <CustomerNumber>652224</CustomerNumber>
    <CustName1>Erich Prang</CustName1>
    <Description/>
    <Description2>R</Description2>
    <UpdateIns>
    <Titel>RHZ</Titel>
    <Publication>B2</Publication>
    <RunDate>26-07-2011</RunDate>
    <Zone>H30</Zone>
    <KDDATEN>nein</KDDATEN>
    </UpdateIns>
    <WorkflowStep>IR</WorkflowStep>
    <Proof>No</Proof>
    </UpdateAd>
    
    

    xml.png

    Try this:

    var f =File.openDialog ();
    f.open('r');
    var xml = new XML(f.read());
    f.close();
    
    var myDocument = app.documents.add();
    myDocument.documentPreferences.pageHeight = xml..Height+"mm";
    myDocument.documentPreferences.pageWidth = xml..Width+"mm";
    var rect = myDocument.pages[0].rectangles,add();
    rect.geometricBounds = myDocument.pages[0].bounds;
    rect.strokeAlignment = StrokeAlignment.INSIDE_ALIGNMENT;
    rect.strokeColor = myDocument.swatches.item("Black");
    rect.strokeWeight = 1;
    myDocument.save(File(f.path + "/" + xml..AdId + ".indd"))
    

    Substances

Maybe you are looking for