I'm trying to manage the text in B4XRadioButton but not very successfully indeed.
B4X:
B4XRadioButton1.mLabel.TextColor = xui.Color_Red ' It works
B4XRadioButton1.mLabel.TextSize = 40 ' It doesn't work
B4XRadioButton1.mLabel.TextSize = B4XRadioButton2.mLabel.TextSize + 25 ' It doesn't work
B4XRadioButton1.mLabel.TextSize = B4XRadioButton2.mLabel.Font.Size + 25 ' It doesn't work
and how I can set text in "bold"? I cannot find the appropriate property...
I suppose it only applies to B4J and that with B4A and B4I it is not necessary.
Maybe it could be implemented in the View but I'm afraid you should create a lot of Label properties. However I suggest it ?, because obviously it would be useful for the developer, "transparent" and because he may not know/remember it.
Sub Class_Globals
(...)
Private fx as JFX
(...)
End Sub
Private Sub Button1_Click
Private myFont as Font = B4XRadioButton1.mLabel.Font.ToNativeFont
(...)
B4XRadioButton1.mLabel.Font = fx.CreateFont(myFont.FamilyName, 15, True, False)
(...)
End Sub