-> \Demos\InputOutput\ResourceLoader
This demo has exciting features. However, it shows non-image nodes in the treeview (version, manifest, string, ...).
I tried to correct this by inserting the following code at the beginning of the main loop in the LoadFile method:
for i := 0 to m_ResourceExtractor.TypesCount - 1 do
begin
// Filter only Image Resources:
if not System.StrUtils.ContainsText(
'Icon*PNG*SVG*Cursor*Bitmap*RCDATA*GroupCursor*GroupIcon*DXSKINS*AniCursor*AniIcon', // Text
m_ResourceExtractor.FriendlyTypes[i] // SubText
)
then CONTINUE;
This is the result with the resources loaded from ResourceLoader.exe:
However, this still shows non-image RCDATA resources! How can the LoadFile procedure be modified to show ONLY resource nodes in the treeview that can directly be displayed in the ImageEnView?