H Herbert32 Active Member Licensed User Longtime User Nov 12, 2024 #1 Hello together, actually I'm facing a problem on which maybe someone of you can help me to solve this problem. I use the B4Xsearchtemplate filled with 300 items which are shown in multiline correct until i start to type my search-text. As soon as i type my search-text, the visible lines-count of each item are varying with each new character, I type in the search-field. If you take a look into the attached pictures, the happend behavior should be clear, even if I did not found the exact words to explain Does someone have an Idea, why this happens and how i can solve this problem? THX in advance Attachments WhatsApp Image 2024-11-12 at 10.49.13 (1).jpeg 114 KB · Views: 463 WhatsApp Image 2024-11-12 at 10.49.13 (2).jpeg 126.9 KB · Views: 402 WhatsApp Image 2024-11-12 at 10.49.13.jpeg 139 KB · Views: 549 Last edited: Nov 12, 2024
Hello together, actually I'm facing a problem on which maybe someone of you can help me to solve this problem. I use the B4Xsearchtemplate filled with 300 items which are shown in multiline correct until i start to type my search-text. As soon as i type my search-text, the visible lines-count of each item are varying with each new character, I type in the search-field. If you take a look into the attached pictures, the happend behavior should be clear, even if I did not found the exact words to explain Does someone have an Idea, why this happens and how i can solve this problem? THX in advance
Solution teddybear Nov 14, 2024 initially after .setitems all items are in the correct size - but after the first character in search-field the height of the items changes - also after removal of all characters in the searchfield the height of the items is different from original Click to expand... I have no the items data, just extract them from your pictures. the behavior is you want? some characters or removal of all characters in search field the height of the items does not change.
initially after .setitems all items are in the correct size - but after the first character in search-field the height of the items changes - also after removal of all characters in the searchfield the height of the items is different from original Click to expand... I have no the items data, just extract them from your pictures. the behavior is you want? some characters or removal of all characters in search field the height of the items does not change.
DonManfred Expert Licensed User Longtime User Nov 12, 2024 #2 Herbert32 said: Does someone have an Idea, why this happens and how i can solve this problem? Click to expand... This is how the b4xSearchTemplate is working. It lists all matching Entries. Upvote 0
Herbert32 said: Does someone have an Idea, why this happens and how i can solve this problem? Click to expand... This is how the b4xSearchTemplate is working. It lists all matching Entries.
H Herbert32 Active Member Licensed User Longtime User Nov 12, 2024 #3 DonManfred said: This is how the b4xSearchTemplate is working. It lists all matching Entries. Click to expand... yes - but it should not reduce the visible lines inside an item in the list of matching items look at the first item, which starts with '1 Schutzgasschweißgerät....' : typing 'bac' there are 6 lines visible typing 'ba' there are 2 lines visible typing 'back' there are 3 lines visible typing 'backs' there are 2 lines visible typing 'backst' there are 3 lines visible Upvote 0
DonManfred said: This is how the b4xSearchTemplate is working. It lists all matching Entries. Click to expand... yes - but it should not reduce the visible lines inside an item in the list of matching items look at the first item, which starts with '1 Schutzgasschweißgerät....' : typing 'bac' there are 6 lines visible typing 'ba' there are 2 lines visible typing 'back' there are 3 lines visible typing 'backs' there are 2 lines visible typing 'backst' there are 3 lines visible
teddybear Well-Known Member Licensed User Nov 12, 2024 #4 yes - but it should not reduce the visible lines inside an item in the list of matching items look at the first item, which starts with '1 Schutzgasschweißgerät....' : typing 'bac' there are 6 lines visible typing 'ba' there are 2 lines visible typing 'back' there are 3 lines visible typing 'backs' there are 2 lines visible typing 'backst' there are 3 lines visible Click to expand... Obviously, all of these items which shown contain the search key, some keys of them are just out of the visible range of the item. you can check them. such as Last edited: Nov 12, 2024 Upvote 0
yes - but it should not reduce the visible lines inside an item in the list of matching items look at the first item, which starts with '1 Schutzgasschweißgerät....' : typing 'bac' there are 6 lines visible typing 'ba' there are 2 lines visible typing 'back' there are 3 lines visible typing 'backs' there are 2 lines visible typing 'backst' there are 3 lines visible Click to expand... Obviously, all of these items which shown contain the search key, some keys of them are just out of the visible range of the item. you can check them. such as
H Herbert32 Active Member Licensed User Longtime User Nov 12, 2024 #5 teddybear said: Obviously, all of these items which shown contain the search key, some keys of them are just out of the visible range of the item. you can check them. such as View attachment 158556 Click to expand... yes - i know this - the value of the item is correct but the 'visible range', which i called 'visible lines' always changes for the matched items with each character i add to the search-field. this for sure is not the expected behavior. the user needs to see the complete text of each matched item to be able to select the correct one by touching the item in the list. initially after .setitems all items are in the correct size - but after the first character in search-field the height of the items changes - also after removal of all characters in the searchfield the height of the items is different from original i tried to modify b4xsearchtemplate.bas but without acceptable success. Upvote 0
teddybear said: Obviously, all of these items which shown contain the search key, some keys of them are just out of the visible range of the item. you can check them. such as View attachment 158556 Click to expand... yes - i know this - the value of the item is correct but the 'visible range', which i called 'visible lines' always changes for the matched items with each character i add to the search-field. this for sure is not the expected behavior. the user needs to see the complete text of each matched item to be able to select the correct one by touching the item in the list. initially after .setitems all items are in the correct size - but after the first character in search-field the height of the items changes - also after removal of all characters in the searchfield the height of the items is different from original i tried to modify b4xsearchtemplate.bas but without acceptable success.
teddybear Well-Known Member Licensed User Nov 13, 2024 #6 Herbert32 said: i tried to modify b4xsearchtemplate.bas but without acceptable success. Click to expand... Try this b4xsearchtemplate.bas, is it the behavior you want ? Attachments B4XSearchTemplate.bas B4XSearchTemplate.bas 7.8 KB · Views: 539 Last edited: Nov 13, 2024 Upvote 0
Herbert32 said: i tried to modify b4xsearchtemplate.bas but without acceptable success. Click to expand... Try this b4xsearchtemplate.bas, is it the behavior you want ?
H Herbert32 Active Member Licensed User Longtime User Nov 14, 2024 #7 teddybear said: Try this b4xsearchtemplate.bas, is it the behavior you want ? Click to expand... thank you for trying to help. No, it has the same behavior Upvote 0
teddybear said: Try this b4xsearchtemplate.bas, is it the behavior you want ? Click to expand... thank you for trying to help. No, it has the same behavior
teddybear Well-Known Member Licensed User Nov 14, 2024 #8 initially after .setitems all items are in the correct size - but after the first character in search-field the height of the items changes - also after removal of all characters in the searchfield the height of the items is different from original Click to expand... I have no the items data, just extract them from your pictures. the behavior is you want? some characters or removal of all characters in search field the height of the items does not change. Attachments 4.png 60.7 KB · Views: 517 Upvote 1 Solution
initially after .setitems all items are in the correct size - but after the first character in search-field the height of the items changes - also after removal of all characters in the searchfield the height of the items is different from original Click to expand... I have no the items data, just extract them from your pictures. the behavior is you want? some characters or removal of all characters in search field the height of the items does not change.
H Herbert32 Active Member Licensed User Longtime User Nov 14, 2024 #9 i'm sorry - you are right - your modification works - at my first test i loaded a wrong template. I made same modification by myself before - but at that time, i don't know why, it has been much slower by using Code: this: CustomListView1.AddTextItem(cs, item) instead of this: CustomListView1.Add(p, item) anyway... - actally it seems to be fast enough thank you for your kind help Upvote 0
i'm sorry - you are right - your modification works - at my first test i loaded a wrong template. I made same modification by myself before - but at that time, i don't know why, it has been much slower by using Code: this: CustomListView1.AddTextItem(cs, item) instead of this: CustomListView1.Add(p, item) anyway... - actally it seems to be fast enough thank you for your kind help