B4J Question Error Label.Style (Css)

ivanomonti

Expert
Licensed User
Longtime 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

B4X founder
Staff member
Licensed User
Longtime 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
 
Upvote 0
Top