Page 1 of 1

[SOLVED] User Buttons Odd Icon Behavior

Posted: 04 Apr 2013 23:49
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"

Re: User Buttons Odd Icon Behavior

Posted: 05 Apr 2013 11:14
by FluxTorpedoe
Confirmed here with the quotes.
Are they really necessary?

Re: User Buttons Odd Icon Behavior

Posted: 12 Apr 2013 13:38
by admin
You quoted the icon path? That's wrong.

Re: User Buttons Odd Icon Behavior

Posted: 12 Apr 2013 23:55
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...

Re: User Buttons Odd Icon Behavior

Posted: 13 Apr 2013 10:17
by admin
Yes, spaces are okay.

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

Re: User Buttons Odd Icon Behavior

Posted: 16 Apr 2013 02:29
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: