B4J Question Error Label.Style (Css)

Discussion in 'B4J Questions' started by ivanomonti, Apr 10, 2015.

  1. ivanomonti

    ivanomonti Well-Known Member Licensed User

    Code:
    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
     
  2. ivanomonti

    ivanomonti Well-Known Member Licensed User

    mmmm this problem it reflected only on debug!
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Works here:
    Code:
    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, 
    00100100)
       MainForm.Show
    End Sub
     
  4. ivanomonti

    ivanomonti Well-Known Member Licensed User

    thank 10000
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice