B4J Question apply style sheet to combobox

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:
B4X:
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 ?
 
Top