Internal Associations - one association, different icons

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Internal Associations - one association, different icons

Post by *Gral »

Please add possibility to define different icons for different extensions under ONE Internal Association
This has been discussed many times.
Last edited by Gral on 2024-10-13, 20:42 UTC, edited 2 times in total.
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Internal Association - different icons

Post by *Hacker »

Gral,
Can you link some discussions, please?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Internal Association - different icons

Post by *Gral »

https://www.ghisler.ch/board/viewtopic.php?p=370086 - partially implemented - for commands only.
There was at least another one - can't find right now
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Internal Association - different icons

Post by *Hacker »

Gral,
Thanks.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Internal Association - different icons

Post by *Gral »

For example, i have something like this in [Associations]

Code: Select all

Filter1=*.aac *.ac3 *.amr *.ape *.flac *.m4a *.mp3 *.ogg *.snd *.voc *.wav *.wma *.wv
Filter1.icon=%1
Filter1_open=WINAMP.EXE "%1"
with the new function it could look like this e.g.

Code: Select all

Filter1=*.aac *.ac3 *.amr *.ape *.flac *.m4a *.mp3 *.ogg *.snd *.voc *.wav *.wma *.wv
Filter1.icon.aac=AAC.ICO
Filter1.icon.ape=APE.ICO
Filter1.icon.mp3=MP3.ICO
Filter1.icon.flac=FLAC.ICO
Filter1_open=WINAMP.EXE "%1"
But this may be implemented even better, shorter way - just new function with new INI section which take precedence for icons if exist

Code: Select all

[Icons]
AAC=AAC.ICO
APE=APE.ICO
MP3=MP3.ICO
FLAC=FLAC.ICO
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Re: Internal Association - different icons

Post by *jinsight »

Support ++
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
User avatar
Galizza
Member
Member
Posts: 198
Joined: 2018-09-07, 05:21 UTC

Re: Internal Association - different icons

Post by *Galizza »

Support
KozakMak
Senior Member
Senior Member
Posts: 478
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: Internal Association - different icons

Post by *KozakMak »

Support
OS: Win10 | TC: latest x64
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Internal Association - different icons

Post by *Gral »

User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Internal Associations - one association, different icons

Post by *Gral »

There is many new function and improvements regarding icons - why not this one?
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Internal Associations - one association, different icons

Post by *Fla$her »

Apparently, because the filter can contain other ways of writing mask, as well as templates with regular expressions.
Overquoting is evil! 👎
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Internal Associations - one association, different icons

Post by *white »

Gral wrote: 2023-05-08, 10:59 UTC Almost 13 years ago.
viewtopic.php?p=208541#p208541
Gral wrote: 2024-10-13, 20:39 UTC There is many new function and improvements regarding icons - why not this one?
The post you referenced mentions:
Stiltzkin wrote: 2010-08-21, 17:24 UTC is there a way to assign a different icon for every extension with this method?

currently i have every image extension (jpg, gif, png, bmp, etc...) assigned to the same programs with the exception of the icon. the icon is different for every file. but its annoying if i want to change the default program for images.
Since TC version 11.00 you can use internal (custom) commands in internal associations. So you can solve that problem by using the same custom em_ command for several associations. Then you only need to change the custom command to change the program for all the images.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: Internal Associations - one association, different icons

Post by *Gral »

2 Fla$her, white
You haven't answered any question, you haven't solved any problem. My question is directed solely to the author. Please don't pollute the thread.
TIA.
KozakMak
Senior Member
Senior Member
Posts: 478
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: Internal Association - different icons

Post by *KozakMak »

Gral wrote: 2023-05-06, 08:48 UTC But this may be implemented even better, shorter way - just new function with new INI section which take precedence for icons if exist
Support ++
OS: Win10 | TC: latest x64
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Internal Associations - one association, different icons

Post by *Fla$her »

Gral wrote: 2024-10-14, 16:11 UTC You haven't answered any question, you haven't solved any problem. My question is directed solely to the author. Please don't pollute the thread.
And I think that I answered the question about the reasons and didn't pollute the thread. Only the author is able to offer a solution. If the question is addressed only to him, you should first specify his nickname. Discussion is not prohibited here, but encouraged. If you disagree with something, it is logical to do it reasonably, and not by asking not to interfere.

If the extensions in the dialog could be in separate positions/controls, then your request would be clear, and I would agree with and approve it. That is, what it could look like: radio buttons that choose how to specify extensions: through a mask/template, as it is now, or by creating new forms for each extension, approximately as it is done on the cm_ConfigViewModeSwitch page.
Overquoting is evil! 👎
Post Reply