Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Some images do not show in SRP edit-table
When populating an SRP edit-table with 5000 or more thumbnail images obtained by searching a database table, certain images (sometimes individual, often one or more ranges of image) do not appear. The specific images that fail to appear differ from one search to the next. I checked the OLE.CellImage property with Get_Property, and the filesystem path to the thumbnail is always correct; nonetheless the SRP table shows a significant number of empty cells throughout.
I use:
Set_Property(@Window:".OLE_THUMBNAILS", "OLE.CellImage[":icol:";":irow:"]", location:@FM:"None")
and:
Send_Message(@Window:".OLE_THUMBNAILS", "QUALIFY_EVENT", "OLE.OnClick", 1)
Is there a way to verify that an image has actually been loaded into a cell?
I use:
Set_Property(@Window:".OLE_THUMBNAILS", "OLE.CellImage[":icol:";":irow:"]", location:@FM:"None")
and:
Send_Message(@Window:".OLE_THUMBNAILS", "QUALIFY_EVENT", "OLE.OnClick", 1)
Is there a way to verify that an image has actually been loaded into a cell?
Comments
If it turns out that certain images tend to fail more than others, I'd be happy to take a look at those images to see if there's some feature that prevents loading properly. For example, we recently discovered that 64-bit images wouldn't load, a fix that will be forthcoming in the next release.
Is it possible to add "Next" and "Back" buttons to an SRP edit table? If so, would the memory problem go away, or are the buttons equivalent to the scroll bar in terms of loading into memory?
Lending support to the memory argument, where the empty cells appear depends on how one scrolls through the table.
Scenario A:
1. Find 5000 images to load in SRP edit-table: ~400 MB used by OI
2. Then drag side-bar down quickly to last row: ~410-700 MB used
3. Then scroll up until first empty cells: ~1660-1700 MB used, roughly 4/5 of the way to the top of the edit-table. From here to the top, groups of images are separated by groups of empty cells.
Scenario B:
1. Find 5000 images to load in SRP edit-table: ~400 MB used by OI
2. Then scroll down until first empty cells: ~1660-1700 MB used, roughly 4/5 of the way to the bottom of the edit-table. From here to the bottom, all cells are empty.
Thanks for the insight, Kevin. I look forward to your comment on a "Next" button, which is the suggestion here. I don't think it will work, but with only a few months experience with OI and SRP tools I could easily be wrong.