[SOLVED] User Buttons Odd Icon Behavior

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

[SOLVED] User Buttons Odd Icon Behavior

Post by Enternal »

When you edit a User Button, you have the Name, Icon, On click, and On right-click field. If you attempt to add parentheses around the path to icon due to spaces in the path, on next edit, you will see that the path to the icon becomes empty and somehow that path that was there ended up in the "on click" text field.

On Edit:
Icon: "C:\PathToIcon.ico"
On click: ::load "<xyscripts>\Script.xys"

Click ok and then reedit that button. It now shows:
Icon:
On click: C:\PathToIcon.ico"|0| ::load "<xyscripts>\Script.xys"
Last edited by Enternal on 16 Apr 2013 02:30, edited 1 time in total.

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: User Buttons Odd Icon Behavior

Post by FluxTorpedoe »

Confirmed here with the quotes.
Are they really necessary?

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

Re: User Buttons Odd Icon Behavior

Post by admin »

You quoted the icon path? That's wrong.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: User Buttons Odd Icon Behavior

Post by Enternal »

admin wrote:You quoted the icon path? That's wrong.
So it's okay for the icon path to have spaces in them?
On the other hand, isn't the behavior still kind of funny? I guess if you don't need to quote the icon path, then the weird behavior does not matter...

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

Re: User Buttons Odd Icon Behavior

Post by admin »

Yes, spaces are okay.

I changed it a little so that your superfluous quotes now are tolerated. :)

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: User Buttons Odd Icon Behavior

Post by Enternal »

admin wrote:Yes, spaces are okay.

I changed it a little so that your superfluous quotes now are tolerated. :)
Sweet! Hehe. Now it will no longer act funny if I add quotes. :biggrin:

Post Reply