AbstractTextControl without setTextStyle()?

Hello, guys!

I work with the manipulation of text (Label, TextField... etc you know) and I need change the style of text with C++, but Cascades API do not show how setting a TextStyleDefinition on a control's text.

There are an AbstractTextControl::textStyle() TextStyleDefinition back pointer method, but do not have an AbstractTextControl::setTextStyle (TextStyleDefinition).

I know it's possible with QML, but not in C++. I have the text control in a custom c++ class and don't know how to change the style of text.

Any ideas?

Thank you.

Of course, I say to myself:

----------------------

Label * label = Label::create () .text ("text por defecto");

TextStyleDefinition * was = label-> textStyle();
Was-> setFontWeight (FontWeight::Bold);

----------------------

I am * beep * this morning

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for