06-23-2012 07:18 AM
Hello, guys !
I'm working with text manipulation ( Label, TextField ...etc. you know) and i need change text style with C++, but Cascades API dont show how setting a TextStyleDefinition on a text control.
Exists a AbstractTextControl::textStyle() method returning TextStyleDefinition pointer, but dont a AbstractTextControl::setTextStyle(TextStyleDefinit
I know that is possible with QML, but not in C++. I have text control in a custom C++ class, and dont know how change it's text style.
Any ideas ?
Thanks.
Solved! Go to Solution.
06-23-2012 09:15 AM
Obviously, I answer myself :
----------------------
Label *label = Label::create().text("Texto por defecto");
TextStyleDefinition *tStyle = label->textStyle();
tStyle->setFontWeight(FontWeight::Bold);
----------------------
I'm **bleep** this morning ![]()