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"
[SOLVED] User Buttons Odd Icon Behavior
Forum rules
You might want to read this if you're looking for priority service
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%).
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.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
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%).
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.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
[SOLVED] User Buttons Odd Icon Behavior
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
Confirmed here with the quotes.
Are they really necessary?
Are they really necessary?
• Scripts: Session Manager
| SlideShow | Collection Manager | Power Launcher | Akelpad syntax highlighting | ...
-
admin
- Site Admin
- Posts: 67315
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
Re: User Buttons Odd Icon Behavior
So it's okay for the icon path to have spaces in them?admin wrote:You quoted the icon path? That's wrong.
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
Yes, spaces are okay.
I changed it a little so that your superfluous quotes now are tolerated.
I changed it a little so that your superfluous quotes now are tolerated.
FAQ | XY News RSS | XY X
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
Re: User Buttons Odd Icon Behavior
Sweet! Hehe. Now it will no longer act funny if I add quotes.admin wrote:Yes, spaces are okay.
I changed it a little so that your superfluous quotes now are tolerated.
XYplorer Beta Club