Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
alopix
Posts: 416
Registered: ‎04-10-2011
My Device: Z10 LE & PlayBook
Accepted Solution

Cascades multi line Label with text wrapping

I read somewhere that the Cascades Label currently onyl supports a single line and when testing it, it also only works that way. To long Labels will be ellipsised.

Are there any plans to support multi line Labels with automatic text arapping (via a property of course)?

Or are we supposed to use disabled TextAreas in the future too?

-----------------------------------------------------------------------------
Check out my apps in the BlackBerry World
Visit my developer blogs /dev/alopix and /home/alopix
BBM Channel: C0047B612
BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Cascades multi line Label with text wrapping

Yes, there are plans for this. Stay tuned...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
dbigham
Posts: 552
Registered: ‎04-01-2009
My Device: Z10, PlayBook

Re: Cascades multi line Label with text wrapping

I was going to use a TextArea with:

 

editable: false

 

...

 

Unfotunately, the background color of my screen is the standard #262626, and setting editable:false means that the text color is black, making it barely readable.

 

Is there a way to set the text color, or will I need to use a white background color for the time being?

BlackBerry Development Advisor (Retired)
amarcon
Posts: 155
Registered: ‎07-16-2012
My Device: Dev Alpha

Re: Cascades multi line Label with text wrapping

Yes, actually, you can put the TextArea into a Container and set its background color.

 

Cheers,

 

Alex

Developer
dbigham
Posts: 552
Registered: ‎04-01-2009
My Device: Z10, PlayBook

Re: Cascades multi line Label with text wrapping

Thanks, although my question is whether there is a way to set the TEXT color of a TextArea. (I do realize that you can set the background color, and am doing that)

BlackBerry Development Advisor (Retired)
amarcon
Posts: 155
Registered: ‎07-16-2012
My Device: Dev Alpha

Re: Cascades multi line Label with text wrapping

Yes, you can set the color into textStyle, inside of TextArea, such as:

 

TextArea {            
      id: lbl
      text: ""
      editable: false
      textStyle {
            color: Color.White
      }
               
      layoutProperties: StackLayoutProperties {
            horizontalAlignment: HorizontalAlignment.Fill
      }
}

 Hope this helps.

 

Cheers,

 

Alex

Contributor
bryanh99
Posts: 43
Registered: ‎06-30-2012
My Device: Bold 9900

Re: Cascades multi line Label with text wrapping

You should note that using a TextArea will result in the keyboard popping up (even it the textfield is set to editable: false.  I created a SLOT where I catch the keyboard opening and close it programaticaly.  But it still shows for a split second when it opens.

 

 

BlackBerry Development Advisor (Retired)
amarcon
Posts: 155
Registered: ‎07-16-2012
My Device: Dev Alpha

Re: Cascades multi line Label with text wrapping

You're right, it was like that on the previous release, but it is fixed now within r06.

 

Cheers,

 

Alex

BlackBerry Development Advisor (Retired)
mgoulet
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha

Re: Cascades multi line Label with text wrapping

Contributor
bdely
Posts: 27
Registered: ‎07-18-2012
My Device: Curve 9380 / PlayBook

Re: Cascades multi line Label with text wrapping

Thanks for the heads up that it will be coming, :smileyhappy: