External Toolbar Icon randomly changing on drop
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".
-
jupe
- Posts: 3569
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
External Toolbar Icon randomly changing on drop
Recently I became aware that you can drag and drop on CTB's and it will run the associated left click action on the dragged files without having to script that functionality within the script, (I'd previously thought only Drop-Stack CTB worked like that) which is a cool feature, but upon starting to use that functionality I have found a random bug when using an external icon file. When I drag onto a button that has an external icon it sometimes randomly changes the icon to one of the internal XY icons, it doesn't always change it to the same icon either, in the attached image you can see that it randomly changes to the Details button, but the internal icon it changes to is also random.
It doesn't happen all the time either which is strange, it mainly does it at the start of a session, and sometimes it will take numerous repetitions to invoke the behavior, but I have seen it on multiple different XY profiles, and in fresh instances with no changes except for the addition of the CTB.
I have been hesitant to report it because this bug isn't disruptive and if you click on the button when it gets stuck on the wrong icon it changes straight back to the correct one, and its occurrence is very random so you may not want to spend any time on chasing it. Sometimes it doesn't do it, then after a while it starts doing it again, then if you click the button instead of dragging to it, it is ok for a while again, but may return later in the session.
I should add that I have only seen it happen to the first CTB from the left, but that may just be a coincidence.
The script I am using in the screenshot is just a text runret().
It doesn't happen all the time either which is strange, it mainly does it at the start of a session, and sometimes it will take numerous repetitions to invoke the behavior, but I have seen it on multiple different XY profiles, and in fresh instances with no changes except for the addition of the CTB.
I have been hesitant to report it because this bug isn't disruptive and if you click on the button when it gets stuck on the wrong icon it changes straight back to the correct one, and its occurrence is very random so you may not want to spend any time on chasing it. Sometimes it doesn't do it, then after a while it starts doing it again, then if you click the button instead of dragging to it, it is ok for a while again, but may return later in the session.
I should add that I have only seen it happen to the first CTB from the left, but that may just be a coincidence.
The script I am using in the screenshot is just a text runret().
To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 67248
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: External Toolbar Icon randomly changing on drop
Tried hard, but could not yet make it happen.
You left-drag a file from the list to the toolbar within the same instance, right?
Have you been using the toolbar scroll feature before it happens?
You left-drag a file from the list to the toolbar within the same instance, right?
Have you been using the toolbar scroll feature before it happens?
FAQ | XY News RSS | XY X
-
jupe
- Posts: 3569
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: External Toolbar Icon randomly changing on drop
Nope I don't have scrollable toolbar enabled, yes it is list to the toolbar in the same instance. here are a couple more GIFs I captured in the same session as the earlier one (with no config changes or toolbar buttons changed), I added progress bars to them so you can see that the button got stuck with the wrong icon on it before I started dragging, and that it switched to 2 different icons, all within the same session, it is very strange. and very random, I wouldn't invest too much time in trying to find it, I just though something may stand out initially in the code, it happens straight after the drop on the icon from the same instances file list.
To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 67248
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: External Toolbar Icon randomly changing on drop
Happens only on drop, not on drag over?
FAQ | XY News RSS | XY X
-
jupe
- Posts: 3569
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: External Toolbar Icon randomly changing on drop
Correct on drop, (not drag over, ever) and only on external icon source toolbar buttons that have a script left click action.
-
admin
- Site Admin
- Posts: 67248
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: External Toolbar Icon randomly changing on drop
I'm testing it with the following script in the button:
Can you make it happen with that script as well?
Code: Select all
status formatdate();FAQ | XY News RSS | XY X
-
jupe
- Posts: 3569
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: External Toolbar Icon randomly changing on drop
No I can't with that script, maybe the runret() has something to do with it?, although I just got it to happen 4 times. I dragged a few times and it didn't happen then clicked a different button to the left and then cancelled the dialog, then next try of dropping it turned into the button that I had just pressed last which was the quicksearch button.
These are the steps I can follow for it to happen, consistently:
These are the steps I can follow for it to happen, consistently:
- drag and drop to the button a few times and it works ok
- press another button to the left of it that opens a dialog (like a quicksearch button)
- cancel the dialog
- drag to it again and its icon now turns into the last pressed button. (quicksearch magnify icon in this example case)
-
admin
- Site Admin
- Posts: 67248
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: External Toolbar Icon randomly changing on drop
Bingo, seeing it now!
Going down to fix...
Going down to fix...
FAQ | XY News RSS | XY X
-
jupe
- Posts: 3569
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: External Toolbar Icon randomly changing on drop
Nice!, it must switch to the last pressed button, which is why I was seeing a heap of random ones previously, I only just figured out those repeatable steps that would make it happen regularly or I would have listed them earlier, thanks for your patience., I should have waited to figure them out before bothering you but it seemed so random until just then.
-
admin
- Site Admin
- Posts: 67248
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
jupe
- Posts: 3569
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
-
jupe
- Posts: 3569
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: External Toolbar Icon randomly changing on drop
I noticed that this issue wasn't completely fixed nearly straight away, but it has taken me until now to be able to create reproducible steps to invoke it, and I didn't want to bother you again until I had them locked down, so here are the steps:
It does it with internal and external toolbar buttons, it can change into random different icons like the initial reported issue, but this is one way of getting it to turn into the OpenWith button consistently, unlike the initial reported issue this time it returns to the correct icon again on mouse over. Not that you need them, but here are some screenshots of it changing into probably the last pressed button I had used, in these following captures the middle button pictured should be an external toolbar icon, like in my original post.
edit: I just realized you can also make it happen using the default "Views" button dropdown (not right click) menu and the "Configure Thumbnails" item, cancel the dialog and then drop on the snippet button = button turns into Views icon.
- Run fresh;
- Add the below snippet;
- Press OpenWith toolbar button, select "Customize File Associations"
- Cancel the dialog
- Drag+Drop a file onto the new toolbar button created in Step 2
- Press Close in text() dialog.
- Watch the toolbar button you just dropped a file onto change to the OpenWith toolbar button when the inputselect() pops up.
Code: Select all
Snip: CTB 1
XYplorer 19.00.0110, 24/6/18 12:32:03 PM
Action
NewUserButton
Name
Icon
ScriptL
text "Step 6";inputselect();
ScriptR
FireClick
0
edit: I just realized you can also make it happen using the default "Views" button dropdown (not right click) menu and the "Configure Thumbnails" item, cancel the dialog and then drop on the snippet button = button turns into Views icon.
To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 67248
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: External Toolbar Icon randomly changing on drop
Yep, indeed. Should be fixed in next beta.
FAQ | XY News RSS | XY X
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: External Toolbar Icon randomly changing on drop
I wrote this to a bug topic more than 4 years ago:
For me the problem seemed pretty random, I couldn't write a way to reproduce. I just saw it every now and then, but never happened when I tried to call forth intentionally. It will be strange not to see it any more...It happened again. Next time I am going to take some screenshots. I have the Recent Locations button and a user button next to each other, and the Recent button icon has changed to the user button icon. I moved my mouse pointer above the wrong icon, and I got the original Recent Locations icon back immediately.
-
jupe
- Posts: 3569
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: External Toolbar Icon randomly changing on drop
@Don: Confirmed fixed, thanks!
@LittleBiG: Yeah both these similar issues seemed very random to me too, even though it happened regularly for me, it has still taken me ages to lock down reproducible steps to force both to occur, thankfully now all is good.
@LittleBiG: Yeah both these similar issues seemed very random to me too, even though it happened regularly for me, it has still taken me ages to lock down reproducible steps to force both to occur, thankfully now all is good.
XYplorer Beta Club