Hi All,
I am attempting change the text colours of buttons as they are actioned. The code below should toggle the text colours of two buttons but it doesn't.
I have obviously missed something in the CCSUtils tutorial, can anyone spot the error?
Regards Roger
I am attempting change the text colours of buttons as they are actioned. The code below should toggle the text colours of two buttons but it doesn't.
B4X:
Sub BtnStandard_Action
CSSUtils.SetStyleProperty(BtnStandard, "fx-text-fill", "#0D88BF") 'Change button text colour
CSSUtils.SetStyleProperty(BtnExtended, "fx-text-fill", "LightGray") 'Change button text colour
Mode = 0
StandardExtended.Initialize("StandardExtended", 5) '5ms timer
StandardExtended.Enabled = True
End Sub
Sub BtnExtended_Action
CSSUtils.SetStyleProperty(BtnExtended, "fx-text-fill", "#0D88BF") 'Change button text colour
CSSUtils.SetStyleProperty(BtnStandard, "fx-text-fill", "LightGray") 'Change button text colour
Mode = 1
StandardExtended.Initialize("StandardExtended", 5) '5ms timer
StandardExtended.Enabled = True
VolReqSCalc
ConcVolSCalc
Validate
End Sub
I have obviously missed something in the CCSUtils tutorial, can anyone spot the error?
Regards Roger