[8.0ß6-x86] Lister - strange behavior while showing icons

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Biozynotiker
Member
Member
Posts: 164
Joined: 2011-03-22, 09:57 UTC
Location: Germany

[8.0ß6-x86] Lister - strange behavior while showing icons

Post by *Biozynotiker »

Showing icons (*.ico) with the lister produce a strange behavior.

Lister's configuration:
- Display at startup: automatic
- Fit image to window
- Center Image

x64: (correct behavior)
- icon is shown as binary
- when external viewer like irfanview is enabled, icon is shown as image, centered, correct in size (at least in 32x32px)

x86:
- icon is not shown as binary, icon is shown as ugly resized icon, not centered
- when external viewer like irfanview is enabled, it looks exactly like the above one
- when you resize the listener window, the icon move to the somewhere on the left

It seems the the external viewer is always enabled (in this case irfanview) and resize the smallest icon (index 1, 8x8px) to a zoomed ugly icon in 32x32 pixel.
Here is an example icon (multiple size icon): Icon

This "bug" is maybe a mix from older beta's:
- "image center bug with different image sizes"
- "not correct save/load lister configuration"
My screen resolution is 1680x1050px, in the case this bug is affected with older lister bugs.
#92832
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The 32-bit version uses a Delphi image control which supports also icon files. This control shows the icons when you don't use Irfanview. This behaviour is intentional.
Author of Total Commander
https://www.ghisler.com
Biozynotiker
Member
Member
Posts: 164
Joined: 2011-03-22, 09:57 UTC
Location: Germany

Post by *Biozynotiker »

Is the position of the icon also controlled by the Delphi image control?
Because its not centered when it should (when fit to window is enabled).
#92832
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

This control shows the icons when you don't use Irfanview
I also see this ugly enlarged icon using the 32bit version - even if the use of IrfanView is enabled - so apparantly the control is always in use (except when using plugins).

It is also like that in TC 7.56a.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, you use
Fit image to window
so no wonder it's enlarged. Have you tried "fit only larger" instead?
Author of Total Commander
https://www.ghisler.com
Biozynotiker
Member
Member
Posts: 164
Joined: 2011-03-22, 09:57 UTC
Location: Germany

Post by *Biozynotiker »

so no wonder it's enlarged. Have you tried "fit only larger" instead?
The icon is always shown in 32x32 pixel, regardless the original size and lister option is set.

And the center option is ignored when "fit to window" is set (on these small icons).
This is why i believe this is a not 100% fixed old bug.
#92832
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

so no wonder it's enlarged. Have you tried "fit only larger" instead?
I only use "Fit only larger images to window". But anyway - it looks the same whether I use "Fit image to window", "Fit only larger images to window" or none of those.

Try with this icon: http://madsenworld.dk/tcmd/main-window.ico - it contains two icons: 16x16 and 32x32 and Lister clearly shows an expanded version of the 16x16 icon in stead of the real 32x32 icon inside the file.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, that's what you mean. Hmm, no idea how the Delphi VCL chooses the individual icon from an .ico file.
Author of Total Commander
https://www.ghisler.com
Biozynotiker
Member
Member
Posts: 164
Joined: 2011-03-22, 09:57 UTC
Location: Germany

Post by *Biozynotiker »

So could you please add an option to show an icon in the x86 version by the external viewer like irfanview?
Or maybe change the order: External first (if enabled), Internal Delphi Control Second?

The behavior of the x64 is IMHO the better way.
#92832
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Just use a Lister plugin.
Author of Total Commander
https://www.ghisler.com
Biozynotiker
Member
Member
Posts: 164
Joined: 2011-03-22, 09:57 UTC
Location: Germany

Post by *Biozynotiker »

Fixed:
- Icon not shown "ugly" anymore

Not fixed:
- Icon still not "fit to window", when F is pressed like the x64 version (irfanview enabled as external viewer to show icons in the x64 version)
- Icon shown always in 32x32px regardless of real icon size
#92832
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed fixed in TC 8.0b8 32bit :-)

Only thing is that the 32bit version shows the 32x32pix icon from http://madsenworld.dk/tcmd/main-window.ico (which I prefer) - whereas the 64bit version shows the 16x16 icon from the same file.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Fixed:
- Icon not shown "ugly" anymore
Thanks!
Not fixed:
- Icon still not "fit to window", when F is pressed like the x64 version (irfanview enabled as external viewer to show icons in the x64 version)
- Icon shown always in 32x32px regardless of real icon size
This is intentional and will not be changed.

Btw, the 64-bit version does NOT come with an internal .ico viewer.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Btw, the 64-bit version does NOT come with an internal .ico viewer.
Oh yes, it was IrfanView that showed the smal 16x16 icon.

That leads me to bump this http://ghisler.ch/board/viewtopic.php?t=31409 - it is not easy to now if it is Lister internally or IrfanView that displays an image!
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply