Hi Guys, the list contains about 15 items. When I'm typing to the searchfield so I would like to get showed max number of possible items. In the first I would like to set the max to 15 or not the standard 3 items. Thanks for your help. Martin
www.b4x.com
Now I would like to set the width also. I tried somethging like this, but it do not work.
Any one have got this to work
B4X:
SearchTemplate.MaxNumberOfItemsToShow = 1000
Dim pane As Panel = SearchTemplate.GetPanel(ShowLPSDialog)
pane.Height = 60%y
pane.Width = 50%x
Dim lv As B4XView = SearchTemplate.CustomListView1.AsView
lv.Height=pane.Height
Dim sv As B4XView=lv.GetView(0)
sv.Height=pane.Height
Dim lv As B4XView = SearchTemplate.CustomListView1.AsView
lv.width=pane.width
Dim sv As B4XView=lv.GetView(0)
sv.width=pane.width
This allows you to change the width and height, but it does not allow you to see more scrolling items. You still need to modify the height in the Class itself.