Aliases in CFI

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Daniel0312
Posts: 241
Joined: 15 Feb 2016 10:48

Aliases in CFI

Post by Daniel0312 »

I'm not sure at all it qualifies as a bug...
I've been trying to use an alias to define the path to an icon ressource.
When defining the CFI, the icon in the box DOES show the icon, and the icons are updated in the file list.
When I restart (after saving :) ) the CFI definition is still there but the icons in the list are wrong.
One thing I should mention : the alias is defined in a script at XY startup... so I guess the alias gets set AFTER the CFI.
Is it possible to make it work ?
Daniel
XY32 latest stable / Windows11 23H2 / Scaling 100%

admin
Site Admin
Posts: 66543
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Aliases in CFI

Post by admin »

No, and you said why: the alias is not known yet when CFI are defined.

Daniel0312
Posts: 241
Joined: 15 Feb 2016 10:48

Re: Aliases in CFI

Post by Daniel0312 »

Since it works fine with CFA, I was hoping...
Too bad
Thanks
Daniel
XY32 latest stable / Windows11 23H2 / Scaling 100%

admin
Site Admin
Posts: 66543
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Aliases in CFI

Post by admin »

The difference in handling is due to performance considerations.

Daniel0312
Posts: 241
Joined: 15 Feb 2016 10:48

Re: Aliases in CFI

Post by Daniel0312 »

Since manually validating CFI works, is there a way to "refresh" or reload CFI by script ?
Daniel
XY32 latest stable / Windows11 23H2 / Scaling 100%

admin
Site Admin
Posts: 66543
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Aliases in CFI

Post by admin »

This should do:

Code: Select all

seticons(seticons(), s);

Daniel0312
Posts: 241
Joined: 15 Feb 2016 10:48

Re: Aliases in CFI

Post by Daniel0312 »

Just added your code in my init script >> perfect !
thanks
Daniel
XY32 latest stable / Windows11 23H2 / Scaling 100%

Post Reply