B4J Question Error Label.Style (Css)

ivanomonti

Well-Known Member
Licensed User
B4X:
    l1.Initialize("L1")
    l1.Text = "IVANO MONTI DEVELOPER"
    l1.Style = "-fx-Font-size: 18px; -fx-Font-weight: bold; -fx-text-fill: #333333; -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );"
    InfoForm.RootPane.AddNode(l1,l,t,w,h)
result = null
 

Erel

Administrator
Staff member
Licensed User
Works here:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
   MainForm = Form1
   Dim l1 As Label
   l1.Initialize("L1")
  l1.Text = "IVANO MONTI DEVELOPER"
  l1.Style = "-fx-Font-size: 18px; -fx-Font-weight: bold; -fx-text-fill: #333333; -fx-effect: dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );"
  MainForm.RootPane.AddNode(l1, 0, 0, 100, 100)
   MainForm.Show
End Sub
 
Top