B4J Question Scrolling Labels CustomView with text color

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi all,
I have redesign a form from Scene Builder to Designer because I like to make use of the Scrolling Label.

Now the Design is finish I can not set the Text color.
Text-color and font-size has to be changed at run-time.
Anybody any Idea.

Thanks for help.
 
Last edited:

Swissmade

Well-Known Member
Licensed User
Longtime User
Will try.
Or maybe there is an better way to do this.
Thanks Erel
 
Last edited:
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
For a welcome screen on a big monitor I have a layout that dynamic resize labels. Depends on the size of the screen. With normal Labels this is working perfect. If the screen is bigger the fontsize of the label change.
Now with the Scrolllabel i have no property to set the font, fontsize, textcolor. So this can not resize at runtime yet.
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Nice working this,
Add an other Property to set the Font at Runtime
See the source from the Class.
Thanks again Klaus and Erel
 

Attachments

  • XScrollingLabelV1_2.zip
    46.8 KB · Views: 234
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Have you tested it?
This is tested for B4J and working very well.
To be sure this is also working for B4A some Code changes has to be made.
 

Attachments

  • XScrollingLabelV1_2.zip
    1.7 KB · Views: 239
Upvote 0

klaus

Expert
Licensed User
Longtime User
As this is a B4X CustomView, you should have made the module to work for all three products.
Attached a new version 1.3 with TextFont for B4J, B4A and B4i.
 

Attachments

  • XScrollingLabelV1_3.zip
    4.1 KB · Views: 230
Upvote 0
Top