blist font size

rls456

Member
Licensed User
Longtime User
In the following code the font size does not change

Sub App_Start
Form1.Show

VoiceNo = -1
MyValue = "Main"
Listview1.New1("form1")
ListView1Item.New1
Listview2.New1("form1")
ListView2Item.New1

Listview1.Width = form1.Width /2 -4
Listview1.Height = form1.Height
Listview1.Left = 2
Listview1.BackColor = cWhite
Listview1.ItemHeight = 25
Listview1Item.CreateNew
Listview1Item.FontSize = 8
ListView1Item.Font = "Arial"

Listview2.Width = form1.Width
Listview2.Height = form1.Height
Listview2.Left = form1.Width /2
Listview2.BackColor = cWhite
Listview2.ItemHeight = 25
'Listview2.SeperateItemsWithRectangle = False
Listview2Item.CreateNew
Listview2Item.FontSize = 8
ListView2Item.Font = "Arial"


ReLoadList
LoadINI

End Sub
 

mjcoon

Well-Known Member
Licensed User
Have you studied the demos for this library as suggested in the Help:
Learning to program with bList; Creating an app with bList in 4 minutes

In your code there is nothing to associate the ListView-n-Item objects with the bList. You have called Listview1Item.CreateNew but the Help for that method says:
This method allows creation of an item without placing it to any list. You should use List.Add(Item.Value) after calling this method.

The whole business of working with linked objects is not so easy that you can do it without studying the demos and the Help... (even when the Help is less than perfect!)

Mike.
 
Top