B4A Library [Lib] UltimateListView

Informatix

Expert
Licensed User
Longtime User
Support is only done by email from monday to friday.
 

wildfandango

Member
Licensed User
Longtime User
Hi again Informatix.

When i use PreLoadCallback function defined in SetLoadImageCallbacks

  • Sub PreLoad (ImageViewWidth As Int, ImageViewHeight As Int) As Object

Is possible (from inside of PreLoadCallback Sub PreLoad) any way to know the imageid or something similar to identify the actual image in the ULV?

Like always gratz! for your library and thanks in advance for your help...
 

Informatix

Expert
Licensed User
Longtime User
No, you cannot return a different bitmap according to the ID. The purpose of the Preload callback is to return a generic placeholder.
 

Informatix

Expert
Licensed User
Longtime User
A user asked me an interesting question. He was surprised that changing the file name of an image did not change the image after a call to RefreshContent (and thus a call to his Filler sub). My answer:
When you declare a cache, memory or disk, images are first searched in this cache. The search is done with the ImgID passed to LoadImageAsync. That's why changing the filename has no effect when the ImgID does not change. If you want to keep the same ImgID, you have to remove the copy in cache with RemoveBitmapFromCache before calling RefreshContent.
To let enough time to the Cache manager to delete the files, I suggest to put a DoEvents between RemoveBitmapFromCache and RefreshContent (it's not mandatory, it's just to avoid a possible issue).
 
Last edited:

Rusty

Well-Known Member
Licensed User
Longtime User
I am receiving the following error: Unexpected event (missing RaiseSynchronousEvents)
Have you updated your .xml file to eliminate this?
Thanks
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User

wizard699

Active Member
Licensed User
Longtime User
Hi.
How it's possibile to make a FOR cycle on the items (panels???) of a ULV?
 

wizard699

Active Member
Licensed User
Longtime User
I've a cart ... with some product.
When I press SEND ORDER ... I've to calculate the total from each price present in each item of the ULV ....
 

Informatix

Expert
Licensed User
Longtime User
I've a cart ... with some product.
When I press SEND ORDER ... I've to calculate the total from each price present in each item of the ULV ....
You cannot browse items in an ULV because there are no items but the visible ones. Please read the chapter about recycling in the User's Guide.
I suppose that your cart is a table, map or list, so why don't you access directly this table, map, or list ? Why do you try to get data through the ULV views ? If some items has a selected state, you can get the list of selected ID with the GetSelectedIDs function.
 

wizard699

Active Member
Licensed User
Longtime User
The problem is this: the ULV was linked to a map. But, when I delete an Item, this item was not removed automatically from the map. Is correct?
Ok .... then ... If i remove an item from a ULV ... I've to remove the same item from map to allineate these two objects.
And .. it's not so much simple ....
I will try ....
Perhaps I've to reload the ULV after I've removed an item from ULV and from the map object.
 

wizard699

Active Member
Licensed User
Longtime User
Ok .. I've made in this manner. Map alleate with ULV ... and a method to reload the ULV when an alement was removed from ULV (namely from the map, first).
 

Informatix

Expert
Licensed User
Longtime User
Ok .. I've made in this manner. Map alleate with ULV ... and a method to reload the ULV when an alement was removed from ULV (namely from the map, first).
If you remove an item in the ULV with RemoveItemAt, you do not need to reload anything.
And once removed in the ULV, you just have to call myMap.Remove(key) to remove the corresponding data. I recommend that the map key is the item ID or position (depending on your need) to ease things.
 

Informatix

Expert
Licensed User
Longtime User
I started to send emails to all UltimateListView users to give the link to the new version. As usual, some of these emails were rejected because of your spam software and I think that many were redirected to the spam folder. Please note that I won't resend these emails so check your spam folder.
I will continue to send emails in the days to come so wait until the end of the week before asking for the link.
The new link is intended to be permanent. You will use the new link and password for all future updates.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…