[Implemented] Resolving of environment variables in iconlib filenames

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[Implemented] Resolving of environment variables in iconlib filenames

Post by *petermad »

It is alreadey possible to incorporate environment variables in for example language file names.

So TC will resolve wcmd_win7%PROCESSOR_ARCHITECTURE%_1_dan.lng to wcmd_win7amd64_1_dan.lng and use this file under TC x64.

In the same way it would be nice if TC would resolve environment variables in the iconlib files - so for example wcmicon_win7%PROCESSOR_ARCHITECTURE%.dll would resolve to wcmicon_win7amd64.dll and hence use wcmicon_win7amd64.dll AND wcmicon_win7amd64.inc under TC x64

It seems that TC is already resolving the env. variable but only for the Button bar, not for the Main menu, and not for the .inc file.

Current behaviour when selecting wcmicon_win7%PROCESSOR_ARCHITECTURE%.dll under TC x64:
Icons used in Button bar: wcmicon_win7amd64.dll
Inc file used in Button bar: wcmicon_win7%PROCESSOR_ARCHITECTURE%.inc (if existing)

Icons used in Main menu: wcmicon_win7%PROCESSOR_ARCHITECTURE%.dll
Inc file used in Main menu: wcmicon_win7%PROCESSOR_ARCHITECTURE%.inc (if existing)

Expected behaviour:
Icons used in Button bar: wcmicon_win7amd64.dll
Inc file used in Button bar: wcmicon_win7amd64.inc (if existing)

Icons used in Main menu: wcmicon_win7amd64.dll
Inc file used in Main menu: wcmicon_win7amd64.inc (if existing)


In other words - if I distribute a package with these 5 files:
wcmicon_win7%PROCESSOR_ARCHITECTURE%.dll
wcmicon_win7amd64.dll
wcmicon_win7amd64.inc
wcmicon_win7x86.dll
wcmicon_win7x86.inc

and I in the "Icon library" dialog select the item:
wcmicon_win7%PROCESSOR_ARCHITECTURE%.dll; Icons for Extended Menus for Win 7 32bit
then TC x64 should use wcmicon_win7amd64.dll and wcmicon_win7amd64.inc
while TC 32bit should use wcmicon_win7x86.dll and wcmicon_win7x86.inc

testpackage: http://madsenworld.dk/tcmd/iconlib.zip
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply