Accidental toolbar overwriting

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
LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Accidental toolbar overwriting

Post by LittleBiG »

There is an unintentional way to overwrite the toolbar.

Set it to this (or just open a new instance):
Scrollable toolbar=OFF
Allow button set switching=ON
You see Toolbar 1 with the icons.

Open "Customize toolbar...", dialog appears. Use the wheel and change the toolbar on the main window once, so you will see Toolbar 2 (main menu text items), then click on the "OK" button in the Customize toolbar dialog. The toolbar will change to icons, and the wheel doesn't have apparent effect anymore, it always shows icons. The status bar helped me to figure out, that switching by wheel still worked, but Toolbar 1 overwrote Toolbar 2.

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

Re: Accidental toolbar overwriting

Post by admin »

LittleBiG wrote: 11 Feb 2022 20:51 Open "Customize toolbar...", dialog appears. Use the wheel and change the toolbar on the main window once, so you will see Toolbar 2 (main menu text items), then click on the "OK" button in the Customize toolbar dialog...
You cannot wheel the toolbar while the Customize Toolbar dialog is up. :? Or can you?

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Accidental toolbar overwriting

Post by klownboy »

admin wrote: 12 Feb 2022 11:54 You cannot wheel the toolbar while the Customize Toolbar dialog is up. Or can you?
Yes you can. It kind of surprised me.

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

Re: Accidental toolbar overwriting

Post by admin »

Shocking. Definitely not possible in Win8.1.
I'll fix that.

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Accidental toolbar overwriting

Post by jupe »

The fix of making the main form not react from all modal dialogs (such as all the scripting dialogs too) is a big loss of functionality for me, I often have a dialog open and want to scroll the list pane (usually horizontally), now that is not possible anymore, is there any chance you can limit the scope to just while the Customize Toolbar dialog is open?

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

Re: Accidental toolbar overwriting

Post by admin »

Ok. That's a drastic change from Win8 to Win10. But alright, I'll take back the "fix" and declare the "bug" in this thread as a "feature" ("in Win10 and higher you can duplicate button sets"). :)

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Accidental toolbar overwriting

Post by LittleBiG »

No, it is not a feature this way, it is a bug. While the Customize toolbar dialog is open, an accidental wheel movement is enough to overwrite the toolbar set silently and there is a chance that you won't notice it only after it is already saved. (I had to use a backup to restore it actually.)
Please make an effort to turn it into a real feature then. If the OK button is pressed, check if the edited and the actually shown toolbar are the same. If not, show a confirmation question like: "Are you sure to overwrite button set 2 with button set 1?"

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

Re: Accidental toolbar overwriting

Post by admin »

Come on, there are a thousand ways where an accidental wheel movement can have far worse consequences. If Win10 gives up the concept of modality (still not sure if that's a bug) I'm not going to sit down and fix that all over the place.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Accidental toolbar overwriting

Post by LittleBiG »

admin wrote: 14 Feb 2022 16:05If Win10 gives up the concept of modality (still not sure if that's a bug)
Maybe you misunderstood me. I don't consider this a bug, it is the way how Win 10 works now. But something overwritten by XY without a possibility of cancelling is a real concern. And mainly because it is NOT foreseeable. Who could expect that you are editing the toolbar set 1 and your changes will be saved to another toolbar set by silently overwriting it regardles how you scrolled your wheel? The dialog title says: Custom toolbar - Button Set #1. And clicking on OK will save it to another toolbar leaving button set #1 intact? Nonsense. On pressing button OK, the change should be saved to the very toolbar I have just edited and was shown by the dialog title.

Comment 2:
And yes, the scrolling in the background can be a feature. LIke I am editing button set #1 and I am not sure if the button I am about to add is already in an other button set, so I can scroll the sets through quickly without leaving the editor of set #1. So not the scrolling itself is the bug here.

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Accidental toolbar overwriting

Post by klownboy »

To avoid this problem, could the Customize Toolbar... dialog be updated to indicate the toolbar set change or possibly have a warning message pop up if/when someone inadvertently changes it by CKS or scrolling. Maybe that would be preferrable to disabling background scrolling? Users certainly shouldn't be changing the toolbar set on purpose after bringing up the Customize toolbar dialog.

EDIT: Another option might be for XY to lock to the Customize Toolbar... dialog to the toolbar that was on display when it was invoked so any scrolling or toolbar set changes are ignored while the Customize Toolbar... dialog is displayed.

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

Re: Accidental toolbar overwriting

Post by admin »

klownboy wrote: 14 Feb 2022 17:56 EDIT: Another option might be for XY to lock to the Customize Toolbar... dialog to the toolbar that was on display when it was invoked so any scrolling or toolbar set changes are ignored while the Customize Toolbar... dialog is displayed.
I went that way. I agree it was a bug. :tup:

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Accidental toolbar overwriting

Post by klownboy »

Tested and working good for me. :tup:

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Accidental toolbar overwriting

Post by LittleBiG »

klownboy wrote: 15 Feb 2022 14:39 Tested and working good for me. :tup:
Yes, I can also confirm it.

Post Reply