BB10 SDK 3 qnx.fuse.ui.text.Label issues

       textFormat.size = 22; //Added this in to change font size

        var lblText1:Label = new Label();
        lblText1.text = "Click \n on board to resume game";
//      lblText1.wordWrap=true;
//      lblText1.autoSize= TextFieldAutoSize.LEFT;

Hello

It's probably a noob question but... I made a PlayBook app a bit back and I try to update to use the latest version of the SDK so I can submit for BB10. I think putting the scale and working apart from the text.

I went to import 'qnx.ui.text.Label' to 'qnx.fuse.ui.text.Label' and 'flash.text.TextFormat' "qnx.fuse.ui.text.TextFormat".

After that, I could no longer use 'Label.wordWrap' and 'Label.autoSize. I also can't seem to get newline to work... the '\n' does not appear on the screen, but it does not put a new line. I also tried to use Label.htmlText to use
instead of \n but it had the same problem.

At this time the texts are of the correct font size (I went and added that in for everything), but I couldn't find a way to set wordWrap. Could someone please help me with wordWrap and as to why the line break does not work?

Thank you

-Muskilh

You must add:

lblText1.maxLines = 0;

Tags: BlackBerry Developers

Similar Questions

  • Is there a way to display text labels for the toolbar icons?

    Doesn't seem to be a way to display text labels in firefox 29.0.1. I get bored really what he does so much easier for me. Is it possible to recover?

    You are welcome.

    Yes, the classic theme restaurant is safe to use. Version 1.1.8 is completely overhauled, and there are currently more than 156000 users.

    In the FAQ of modules:

    Are safe modules to install?

    Unless it is clearly indicated otherwise, Add - ons available in this gallery have been checked and approved by the team of editors and are safe for the installation of Mozilla. We recommend that you install only approved modules. If you want to install untrusted modules or add-ons from third-party sites, be careful because these add-ons can damage your computer or violate your privacy. Learn more about our approval process

  • How to send text labels to LabVIEW DIAdem?

    Is it possible to place text labels in a tiara of LabVIEW execution report? Let's say that by specifying its coordinates, text lable name and value? Thank you...

    Hi Chris,

    Yes, it is possible to place text labels on a report of LabVIEW to run using the same piece of code I linked to in your other post.

    In this case, you must change the table 2D with a new set of controls. The controls in VBScript are listed below.

    Call GraphObjNew ("FreeText", "Text4")
    Call GraphObjOpen ("Text4")
    '------------------- Text -----------------------------
    TxtTxt = 'Test '.
    TxtFont = «»
    TxtSize = 3
    TxtColor = 'black '.
    TxtColorRGB = 33554432
    TxtBold = 0
    TxtItal = 0
    TxtUndl = 0
    TxtStrOut = 0
    TxtFrame = 0
    TxtBackColor = «»
    TxtBackRGB = 50331647
    TxtBackRGB2 = 15263976
    TxtBackFMode = "Vertical".
    TxtBackFVariant = "from the bottom".
    '------------------- Position -----------------------
    TxtPosX = 36,47
    TxtPosY = 15,83
    TxtAng = 0
    TxtRelPos = "r-bot."
    Call GraphObjClose ("Text4")

    You will need to convert these to the VI.

    The conversion, you must follow is: where you have call replace you it with Cmd

    then call GraphObjNew ("FreeText", "Text4") becomes GraphObjNew ("FreeText", "Text4") cmd.

    and TxtTxt = 'Test' becomes Var TxtTxt 'Test '.

    ignore all lines starting by '

    for the first lines of the script are becoming as such in the table control.

    Cmd GraphObjNew ("FreeText", "Text4")

    Cmd GraphObjOpen ("Text4")

    Var TxtTxt Test

    Var TxtSize 3

    and so on.

    You can also ignore lines with = "" we need to remove the "" when we send Variables.

    Concerning
    JamesC
    NIUK and Ireland

    It only takes a second to rate an answer

  • With the help of button text label in case selector

    Hello forum members

    I have to use a digital button with labels of text instead of numbers:

    For better readability of the code I would use the text (not the value of the entire control) values in a structure of matter as a selector directly values. I could use the "[] labels text" or the "Digital displays [] well, if I could cast a ring or enum.

    The help of LabVIEW offers:

    Text [] property Dim labels hasPlayer, hasPlayer playerversion = false playerversion = 10 Do While playerversion > 0 On Error Resume Next hasPlayer = (IsObject (CreateObject ("ShockwaveFlash.ShockwaveFlash." & playerversion))) if hasPlayer = true then Exit Do playerversion = playerversion - 1 loop is_FlashVersion = is_Flash playerversion = hasPlayer

    If you want to create no sequential numeric values, use the Digital Displays [] property to get a reference to the display of text label then convert the reference to the class of the ring and use the property of string values and [of] .

    But I don't understand how to do the casting or if I am misunderstanding of aid.

    Does anyone have a suggestion?

    Thank you!

    Klaus

    Klaus M says:

    I now believe that it is not possible to use such a dial marked as a control of enum in food of a selector ' for text.

    Depends on what you mean by "as an enum. The text label can be connected on a box structure. You must manually set the element box selectors, however, for different cases you have. You cannot dynamically create the enum, if that's what you're fishing for. You can, however, have defined as typedef enum and cast.

  • FDT 5 with BB10 SDK Beta 3 Installation work?

    Could someone set on FBT 5 (free version) with BB Tablet OS SKD 3.0.0?

    • I was able to install FDT 5 OK
    • It is set to Flex 4.6 with AIR 3.1 without problem.
    • I added some SDKs 'BlackBerry Tablet OS SDK 2.0.0 for Adobe AIR' and "BlackBerry Tablet OS 3.0.0 for Adobe AIR" in the IDE preferences / FDT / SDK installed.
    • When I select a new project of FDT and select 'AIR' and 'Blackberry', I get an error at the top of the dialog box 'BlackBerry SDK is not installed.  Visit http://fdt.powerflasher.com/blackberry-for-fdt/ to get it. »
    • When I go on this site, it references the BlackBerry for AIR Beta homepage (which is the 3.0.0 SDK I have already installed) and something on a plugin 'FDT' that I couldn't find anywhere.

    Any help is appreciated.  Finally, I try to work around some BB10 AIR development, but it seems you need to keep that separate from Flash Buillder for applications current PlayBook given that you can't do both at the same time.

    To install the BlackBerry of FDT plugin, you must restart the BB10 SDK to install AIR and select integrate with FDT (you have the choice between FlashBuilder and FDT).

    Pointing to the BB10 SDK to FDT preferences (as you did for the sdk of Flex and AIR), it is enough if you plan to build using ant scripts, but is not installed the plugin of FDt.

  • How can we add a text field on the stage, but without the text label?

    How can we add a text field on stage, but without the left text label by default?  I want just the field.

    I thought about it.  Go to the page layout palette and change the options of caption for the text box.

  • hide the text label in the section report IR under certain conditions

    Hello
    We have a textlabel and a calculated field in a section of report to the IR 11.1.2.1. Is it possible (in a script) to hide the textlabel and field based on certain conditions, like for example, if the field computes to 'zero '?
    Thank you.

    Use a field instead of the text label. In the Expression Editor you can use the function if() {} else {}

    HTH

    Wayne

  • Using the list of my icon and ar text label does not align correctly!

    AS3: In the list of components my ar icon and the text label is aligned properly, when the application is started, the label text is on icon and when I put the mouse on any item in the list then alignment is ok. What's not here?

    That's when I test flash application:

    screen1_start.jpg

    And when I put the mouse pointer on any element, the alignment of the icon and the label is ok! and it's like this:

    screen2_mouse over item.jpg

    I do not understand where is the problem, please help! Here is the code:

    Stop();

    Import fl.controls.listClasses.CellRenderer;

    import flash.text.TextFormat;

    Import fl.controls.List;

    Import fl.controls.Slider;

    Import fl.events.SliderEvent;

    Import fl.controls.List;

    import flash.display.Loader;

    import flash.display.MovieClip;

    import flash.net.URLRequest;

    Import fl.data.DataProvider;

    initialization

    var imageLoader:Loader = new Loader();

    friends of the var: Array = [];

    var dp:DataProvider = new DataProvider();

    friends [0] = "icon/general.png";

    list.iconField = "iconSource";

    list.rowHeight = 40;

    list.dataProvider = dp;

    /////////////////////////////////////////////////////////////////

    Loading XML

    /////////////////////////////////////////////////////////////////

    var xmlData:XML;

    var xmlLoader:URLLoader = new URLLoader();

    xmlLoader.addEventListener (Event.COMPLETE, LoadXML);

    xmlLoader.load (new URLRequest("Media/materijali.xml"));

    function LoadXML(e:Event):void

    {

    trace (LoadXml);

    xmlData = new XML (e.target.data);

    function getValues(input:XML)

    {

    var xmlCategoryList:XMLList = input.children ();

    var point: XML;

    var intCount:int = 0;

    for each (item xmlCategoryList)

    {

    imageLoader.load (new URLRequest(friends[0]));

    imageLoader.scaleX = 0.3;

    imageLoader.scaleY = 0.3;

    dp.addItem ({iconSource:imageLoader, label: item.naziv, data: item.autor, data1:item.putanja, data2:item.opis, data3:item.mapa, data4:item.tip});})

    intCount = intCount + 1;

    imageLoader = new Loader();

    }

    } //end for function values

    getValues (xmlData);

    } / / end of loading XML

    /////////////////////////////////////////////////////////////////

    Start the function of list manager, itemClick

    /////////////////////////////////////////////////////////////////

    var varime, varautori, varurl_dok, varurl_opis, varurl_mapa, vartip:String = "";

    list.addEventListener (Event.CHANGE, itemClick);

    var opis_rada:URLLoader = new URLLoader();

    function itemClick(event:Event):void

    {

    XML podaci

    var ime:String = event.target.selectedItem.label;

    authorized var: String = event.target.selectedItem.data;

    var url_dok:String = event.target.selectedItem.data1;

    var url_opis:String = event.target.selectedItem.data2;

    var url_mapa:String = event.target.selectedItem.data3;

    Tip of the var: String = event.target.selectedItem.data4;

    varime = ime;

    varautori = allowed;

    varurl_dok = url_dok;

    varurl_opis = url_opis;

    varurl_mapa = url_mapa;

    vartip = tip;

    }

    fill your dataprovider after the icon loading is complete.

  • qnx.ui.text.Label works only with embedded fonts

    I'm working on an ActionScript 3.0 for Playbook application

    I have the following code:

    [Embed(source="assets/fonts/Gilles_Handwriting.ttf", fontName='GillesHandwriting', fontStyle="normal", fontWeight="normal", embedAsCFF="false", mimeType="application/x-font")]
    public static var FontExtended:Class;
    
    var labelTextFormat:TextFormat = new TextFormat();
    labelTextFormat.color = 0x000000;
    labelTextFormat.size = 40;
    labelTextFormat.italic = false;
    labelTextFormat.font = "GillesHandwriting";
    labelTextFormat.align = TextFormatAlign.CENTER;
    
    var selectLanguage:Label = new Label();
    selectLanguage.setPosition(0, 0);
    selectLanguage.setSize(200, 44);
    selectLanguage.embedFonts = true;
    selectLanguage.textField.antiAliasType = AntiAliasType.ADVANCED;
    selectLanguage.textField.sharpness = 1;
    selectLanguage.textField.thickness = 25;
    selectLanguage.textField.gridFitType = GridFitType.PIXEL;
    selectLanguage.textField.setTextFormat(labelTextFormat);
    selectLanguage.text = "Select your language";
    addChild(selectLanguage);
    

    But I do not see the text.

    If I comment out of IncorporerPolices = true; to setTextFormat (labelTextFormat); I see the text.

    What I am doing wrong?

    I don't know if this makes any differences, but try:

    selectLanguage.format = labelTextFormat;
    
  • How to put a property group in a related curve with the Expansion curve text label

    Hello

    I'm working on a graph which trace a WaveFormChannel named 'Test '. Given that I enabled the expansion of the curve, the graph shows all channels named "Test" in the DataPortal. Now, I want to put the value of the property of the "MyGroupProperty" group in the legend, so whenever I add a new group, automatically add the new "Test" signal and show "MyGroupProperty" in the legend.

    So far, I tried to use the curve text in the option of the label, with something like this

    @GroupPropGet (GroupNumber, "MyGroupProperty") @, but I have to give the value of GroupNumber, and then it shows the same value for all signals. So if I add a new group to the dataportal with a Test string, the legend shows the label of the new signal, but the MyGroupProperty remains the same for all labels

    Thanks in advance for your help

    Hi dslemusp,

    You can use the global 'CGI' variable in a tiara expression to provide the current Index of the traced (even in expansion mode) group.  I've prepared an example that illustrates this and attached it below.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Histogram with text labels

    Histograms can be created in LabVIEW that have a digital number for the axis y and help text of the x-axis labels?  I want to be able to use the text to describe the bins on the x-axis.  You want to add names and not numbers to the x-axis.

    Simular to what they do here with tiara

    http://forums.NI.com/NI/board/message?board.ID=60&message.ID=7283&query.ID=598915#M7283

    Hi Matthew,

    The only solution for that Q (I know) is to use an image control to display text as I showed in this threadlabels.

    Ben

  • Application of distribution exported opens but not set correctly by BB10 SDK 3.2.1

    I was wondering if anyone has seen this before / knows how to fix?

    Using the SDK BB10 3.2.1 installation a debug or release in the Simulator (10.2) works fine, however, if I Pack as an exported version Release, the UI on my app is all messed up (action bar / application menu icons are superimposed on top of the other etc..).

    I have not seen this problem with the SDK 3.0 front

    My guess is that you are compiling with the CSA 2.0 compiler.

    Take a look at this work around https://developer.blackberry.com/air/documentation/gsg_change_runtime_fb.html#mah1354223642439

  • Urgent: Installation of the BB10 SDK B3 upgrade blocks Flash Builder

    I just upgraded another site with Beta 3 of the AIR SDK for Flash Builder (4.6).  Now Flash Builder crashes with an alert pointing me to a log file.  The log file is long, but the tail has this:

    !MESSAGE Missing required bundle org.eclipse.mylyn.context.core_[3.8.0,4.0.0).
    !SUBENTRY 2 org.eclipse.mylyn.team.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle org.eclipse.mylyn.context.ui_[3.8.0,4.0.0).
    !SUBENTRY 2 org.eclipse.mylyn.team.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle org.eclipse.mylyn.resources.ui_[3.8.0,4.0.0).
    !SUBENTRY 2 org.eclipse.mylyn.team.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle org.eclipse.mylyn.tasks.core_[3.8.0,4.0.0).
    !SUBENTRY 2 org.eclipse.mylyn.team.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle org.eclipse.mylyn.tasks.ui_[3.8.0,4.0.0).
    !SUBENTRY 2 org.eclipse.mylyn.team.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle org.eclipse.mylyn.commons.ui_[3.8.0,4.0.0).
    !SUBENTRY 2 org.eclipse.mylyn.team.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle org.eclipse.mylyn.commons.workbench_[3.8.0,4.0.0).
    !SUBENTRY 2 org.eclipse.mylyn.team.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle org.eclipse.mylyn.monitor.core_[3.8.0,4.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-04 12:11:29.426
    !MESSAGE Bundle com.qnx.flashbuilder.multiplatform.qnx.ui_2.0.0.201209241107 [1125] was not resolved.
    !SUBENTRY 2 com.qnx.flashbuilder.multiplatform.qnx.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle com.adobe.flashbuilder.project.multiplatform.ui_[4.6.0,5.0.0).
    !SUBENTRY 2 com.qnx.flashbuilder.multiplatform.qnx.ui 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing required bundle com.adobe.flexbuilder.project.ui_[4.6.0,5.0.0).
    !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-04 12:11:29.426
    !MESSAGE Bundle com.qnx.flashbuilder.multiplatform.qnx.ui.nl1_2.0.0.201209241107 [1126] was not resolved.
    !SUBENTRY 2 com.qnx.flashbuilder.multiplatform.qnx.ui.nl1 2 0 2012-10-04 12:11:29.426
    !MESSAGE Missing host com.qnx.flashbuilder.multiplatform.qnx.ui_2.0.0.
    
    !ENTRY org.eclipse.osgi 4 0 2012-10-04 12:11:29.427
    !MESSAGE Application error
    !STACK 1
    java.lang.RuntimeException: Application "com.adobe.flexbuilder.standalone.FlashBuilderApplication" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer.
        at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
        at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    

    How can I get this fix so I can run the new Flash Builder?

    Does anyone have a link to the beta 2 release, so at least I can continue to work?

    Thank you.

    Good way to spend half a day. Reinstall solved the problem.

  • BB10 sdk 10.0.9.1673 problem, run the application on the device

    I am facing problem by running the application on BB 10 alpha dev device after the installation of the SDK gold BB10
    question is attached to this post please suggest a possible solution for this problem

    updated the SDK, 1673 is not the last. You should be able to do it using the menu Momentics.

  • How to display the text label to the CPP QML

    Friends good day

    I want to display text in the label of a property in MyApp.cpp QString

    I know that I can get the file as follows:

    in QML
    {label
    objectName: processorID
    text: 'myText '.
    }

    in C ++

    QObject * processorID = root-> findChild ("processorID");
    QString procid = processorID;

    But to do this:

    QString msg = QString (procid);

    I get an error where I can't convert object to string.

    A way to fix it?

    Thank you

    To access the label outside of the scope of the root, you can access them as

    Label *label = bb::cascades::Application::instance()->findChild

    -Dishooom

Maybe you are looking for