Thread: Label Controls
-
December 30th, 2021, 15:25 #1
Label Controls
Trying to dynamically control the text in a Label.
Is the Label object a Text Widget?
-
December 30th, 2021, 20:22 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
You should probably take a read over the Developer Guide to get a rough idea of all the pieces:
https://fantasygroundsunity.atlassia...eveloper+Guide
A label is actually a template, that ends up resolving to a stringcontrol object type.
https://fantasygroundsunity.atlassia...or+code+re-use
https://fantasygroundsunity.atlassia.../stringcontrol
And you probably need to know about window/control relationships to make sure you're changing the right ones.
https://fantasygroundsunity.atlassia...Panels+Widgets
But, your best bet is to read over the Dev Guide.
Regards,
JPG
-
December 30th, 2021, 23:37 #3
Hi bloodylemming,
Code:function onValueChanged() if getValue() < 9 then window.Label1.setValue("Below Average"); elseif getValue() > 13 then window.Label1.setValue("Above Average"); end end
-
December 31st, 2021, 01:43 #4
-
December 31st, 2021, 02:01 #5
Add custom control property with property name of center
Dont use labels instead of text fields
just making things hard for yourself
-
December 31st, 2021, 04:10 #6
-
December 31st, 2021, 04:23 #7
-
December 31st, 2021, 19:15 #8
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks