Page 1 of 1

Problem with CFI

Posted: 19 Jan 2024 10:42
by Daniel0312
Hi
I set up the following CFI :

Code: Select all

jpg>"..\..\PICTURE\FSMaxView\MaxView.exe"
The icon in the CFI dialog changes to maxview so I guess it's OK.
But... it doesn't change in the list view : still an empty icon like before.
I tried using the full path with the same result.
Did I make some mistake ?

Now if I remove the quotes :

Code: Select all

jpg>..\..\PICTURE\FSMaxView\MaxView.exe
The icon in the CFI dialog changes to a generic one (meaning XY can't find maxview?).
Every custom Icon in XY (toolbar, catalog, file list,...) change to that icon.
20240119_101338.png
I'm a bit lost, can anyone help ?

Re: Problem with CFI

Posted: 19 Jan 2024 11:47
by highend
Which sense does it make to use a relative path for it? Every .jpg on your system has a MaxView.exe 2 hierarchies above it? Probably not...

Double quotes are not required for the path, even if it contains spaces

*.jpg>D:\FastStone MaxView\MaxView.exe

works fine here for all .jpg files, even in the file list (that's what CFI's are for :) )

Re: Problem with CFI

Posted: 19 Jan 2024 12:05
by Daniel0312
Thanks highend !
For some reason I thought I was giving the path to maxview relative to XY folder. My mistake.

Re: Problem with CFI

Posted: 19 Jan 2024 12:08
by highend
You can do that but then make it right^^

<xypath>\..\..\FSMaxView\MaxView.exe

If that's the correct one...

Re: Problem with CFI

Posted: 19 Jan 2024 13:23
by Daniel0312
Hum... ok that explains it :)

For purpose of testing I set up a hard path like you showed me in your first reply.

Code: Select all

{:image}>E:\Partage\Mes Programmes\PICTURE\FSMaxView\MaxView.exe
(double quotes are not required : if present it doesn't work here)

When I activate it I get :
20240119_123741.png
Every custom icon in XY (toolbar, catalog, ...) change to that icon.
For the toolbar, small buttons is selected in options (I tried changing this setting and it gives back the custom icons, but I really like small buttons :) ).
For the the catalog, I don't think it's possible to change icon size and... I like small buttons.

Any idea ?

Re: Problem with CFI

Posted: 19 Jan 2024 13:59
by highend
Show the definition of such a toolbar entry (that gets the wrong icon)

Re: Problem with CFI

Posted: 19 Jan 2024 14:18
by Daniel0312
One of the user buttons :
20240119_140822.png
All are built the same way, icons are .ico files located in <xyicons>

The toolbar when large buttons is selected in options :
20240119_141449.png

Re: Problem with CFI

Posted: 19 Jan 2024 14:29
by highend
01. Show a screenshot of the menu that you get when you click on the Options... button in the Customize Toolbar window
02. Attach that SM_Wide.ico (rename it to .txt) to your next post

Re: Problem with CFI

Posted: 19 Jan 2024 14:54
by Daniel0312
01.
20240119_145111.png

02.
SM_Wide.ico.txt

Re: Problem with CFI

Posted: 19 Jan 2024 15:18
by highend
Sorry, unable to reproduce your issue (latest beta), in all toolbar button sizes the custom button with your icon isn't changed and the list icons for .jpg are still working properly...

Re: Problem with CFI

Posted: 19 Jan 2024 15:30
by Daniel0312
thank you for taking the time to look into it.
As shown, last test was with {:image}, thus including ico files...
I just tried with only *.jpg and in that case toolbar icons display fine.

Re: Problem with CFI

Posted: 19 Jan 2024 16:11
by highend
In your first post you've said it won't work with jpg. It does here...

With {:Image} this is different, if the corresponding application doesn't exist, in small toolbar button mode the icon for user defined buttons vanish.

Create an additional bug report for that (because it is one, it doesn't happen in large button mode)...

Re: Problem with CFI

Posted: 19 Jan 2024 16:24
by Daniel0312
thank you highend