PoliceFreez Member Licensed User Longtime User Jul 28, 2020 #1 I'm using Erel's miniserachview to horizontally scrolling items from a database and it works great. There is however some of the database entries that are very long and this makes that you have to scroll a long time to get to the next entry. What I would like to know is if there is a way to cut the entry (after a certain width) and have it displayed on two lines instead of only one. Your help will be appreciated.
I'm using Erel's miniserachview to horizontally scrolling items from a database and it works great. There is however some of the database entries that are very long and this makes that you have to scroll a long time to get to the next entry. What I would like to know is if there is a way to cut the entry (after a certain width) and have it displayed on two lines instead of only one. Your help will be appreciated.
Erel B4X founder Staff member Licensed User Longtime User Jul 29, 2020 #2 You will need to do some work for this. MiniSearchView was implemented quite long ago. If I were to create it today, I would have used BBLabel which is easier to work with. Upvote 0
You will need to do some work for this. MiniSearchView was implemented quite long ago. If I were to create it today, I would have used BBLabel which is easier to work with.
PoliceFreez Member Licensed User Longtime User Jul 29, 2020 #3 Thanks Erel. Could you please give an example to load BBLabel from an sqlite database. Also the number of lines to load is more than 7000, will this method work or will it take to long to load? Upvote 0
Thanks Erel. Could you please give an example to load BBLabel from an sqlite database. Also the number of lines to load is more than 7000, will this method work or will it take to long to load?
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2020 #4 PoliceFreez said: Could you please give an example to load BBLabel from an sqlite database. Click to expand... 1. Get the text from the database. 2. Format as you need it with BBCode. 3. Set it with BBLabel.Text PoliceFreez said: Also the number of lines to load is more than 7000, will this method work or will it take to long to load? Click to expand... You should never create 7000 views. Create a few views and reuse them as the user scrolls the list. Upvote 0
PoliceFreez said: Could you please give an example to load BBLabel from an sqlite database. Click to expand... 1. Get the text from the database. 2. Format as you need it with BBCode. 3. Set it with BBLabel.Text PoliceFreez said: Also the number of lines to load is more than 7000, will this method work or will it take to long to load? Click to expand... You should never create 7000 views. Create a few views and reuse them as the user scrolls the list.