ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder


ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ResourceLoader demo
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


880 Posts

Posted - May 30 2023 :  09:03:21  Show Profile  Reply
-> \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
  // 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?


880 Posts

Posted - Jun 06 2023 :  11:16:59  Show Profile  Reply
Hi Nigel,

When displaying all resource types (without filter), how can I access the TEXT-TYPE resources like VERSION, MANIFEST, and SVG data?:

Go to Top of Page


38319 Posts

Posted - Jun 07 2023 :  03:11:31  Show Profile  Reply
Hi Peter

Sorry, I'm out of the office in June. Have you tried:

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: