B4J Question XUI AnotherProgressBar - Label TextSize

LucaMs

Expert
Licensed User
Longtime User
Why if you set the TextSize of mLbl by code... this does not work? :eek:
 

LucaMs

Expert
Licensed User
Longtime User
Not sure that I understand. It doesn't show any text.
Yes, mLbl is declared as public and you can change its (some?) properties (I changed the text color and even rotation, just to try) successfully but TextSize doesn't change.
 

Attachments

  • APB Test.zip
    3.6 KB · Views: 139
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
The latest version is included in XUI Views and doesn't add a label (mLbl variable is there by mistake and is removed now).
XUI Views too ;)

About the label, it is probably a conflict with the label style. You can reset it with lbl.Style = "".
I'll try (although in this way I will have to set also the other properties using Style, such as bold, for example)
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
About the label, it is probably a conflict with the label style. You can reset it with lbl.Style = "".
Style is not a property of a standard Label. Maybe I could use CSSUtils.SetStyleProperty but it expects a Node parameter and also I couldn't use it in b4a.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
1. Better to add the label yourself as it is not included in XUI Views AnotherProgressBar.
With this:
XUI Views too ;)
I meant that even XUI Views AnotherProgressBar exposes that label - I understand, it is a little mistake.


I only wondered that strange thing, you can change some of that label properties but not the text size.

If I need it (right now it was not for me) I will overlay a my label on the APB.


Thank you.
 
Last edited:
Upvote 0
Top