B4J Question apply style sheet to combobox

Discussion in 'B4J Questions' started by le_toubib, Apr 4, 2015.

  1. le_toubib

    le_toubib Active Member Licensed User

    hi all
    i tried all css related post on b4j forum, including this one:
    http://www.rwblinn.de/b4j/b4jhowto/inhaltsverzeichnis.htm

    that's my appstart code:
    Code:
    Sub AppStart (Form1 As Form, Args() As String)
        MainForm = Form1
        MainForm.Initialize(
    "mainform",-1,-1)
        MainForm.RootPane.LoadLayout(
    "lo2"
        MainForm.Show
        SetFullScreen(MainForm)
        subDP.Initialize(dp, 
    False)
          MainForm.Stylesheets.Add(
    File.GetUri(File.DirAssets, "ss.css"))
        createspinners
    End Sub
    and after creating the spinner :

    spns1(i).StyleClasses.Add("rounded")

    i copied the css code from here :
    http://codepen.io/ericrasch/pen/zjDBx
    -what am i doing wrong?
    - also is it possible to use CSS to wordwrap listcells in a combobox, and to show max visible rows ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you upload the full project (File - Export as zip)?
     
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