I have Textfield and i change its color. Then I need to return its default color(white background with grey frame) but I cant (there is no frame). How to do?
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private TextField1 As TextField
Private Button1 As Button
Private Button2 As Button
Private defaultStyle As String
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
defaultStyle = TextField1.Style
End Sub
Sub Button1_Action
CSSUtils.SetBackgroundColor(TextField1,fx.Colors.ARGB(127,255,0,0))
End Sub
Sub Button2_Action
TextField1.Style = defaultStyle
End Sub