Little glitch - let's see if I can explain it briefly and clearly.
I can invoke the following script in two ways: (never mind what it does - just an example)
"&All"
#250
"&Files"
#255
"&None"
#251
- First by assigning it to a User Button on the toolbar
- Second by running the script from User-Defined Commands and assigning a keyboard shortcut to it
NOW: - when I invoke the script by clicking the toolbar icon - the drop-down menu appears WITHOUT the accelerator keys underlined. BUT IF invoked from UDC with the keyboard shortcut, the accelerator keys ARE underlined. How come?
(aside - all of the drop-down toolbar items appear to have accelerator keys associated with the sub-menu items, but there is no way to see which key is assigned to which option without the underscore)
minor glitch with accelerator keys
Forum rules
READ THIS AND DO IT!!!
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%).
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".
READ THIS AND DO IT!!!
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%).
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: minor glitch with accelerator keys
Similar problems:
-Key accelerators not being displayed on script menus (reported here, not working on 9.60.0009 but seems to be ok with newest beta, .0101).
-Regarding "Cancel" on script menus: if I add the keyboard accelerator the menu item is grayed and not click-able; if I remove the key-accel. I can click it but (of course!) losing the functionality. (reference here)
-If it happens that the key accelerator is the same as the key combo component used to invoke it, XY will pop a notice telling about it and do nothing.
-Key accelerators not being displayed on script menus (reported here, not working on 9.60.0009 but seems to be ok with newest beta, .0101).
-Regarding "Cancel" on script menus: if I add the keyboard accelerator the menu item is grayed and not click-able; if I remove the key-accel. I can click it but (of course!) losing the functionality. (reference here)
-If it happens that the key accelerator is the same as the key combo component used to invoke it, XY will pop a notice telling about it and do nothing.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: minor glitch with accelerator keys
This is controlled by Windows, and they should be visible if you press the alt key.
You can change this in XP:
1) Open Control Panel
2) Open Display Properties
3) Select Appearance Tab
4) Open Effects
5) Uncheck: "Hide underlined letters for keyboard navigation until I press the Alt key"
This might be correct for Vista and 7 (I cannot verify it now though): http://www.vistax64.com/vista-general/4 ... ators.html
You can change this in XP:
1) Open Control Panel
2) Open Display Properties
3) Select Appearance Tab
4) Open Effects
5) Uncheck: "Hide underlined letters for keyboard navigation until I press the Alt key"
This might be correct for Vista and 7 (I cannot verify it now though): http://www.vistax64.com/vista-general/4 ... ators.html
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: minor glitch with accelerator keys
This is because you're using an empty script to cancel. Read up on the End command.SkyFrontier wrote:-Regarding "Cancel" on script menus: if I add the keyboard accelerator the menu item is grayed and not click-able; if I remove the key-accel. I can click it but (of course!) losing the functionality. (reference here)
Also you can test this to see the differences:
Code: Select all
"Cancel"
"&Cancel"
"Cancel" end True;
"&Cancel" end 1;-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: minor glitch with accelerator keys
Thank you for the valuable tips, TheQwerty!
-even the .0009 is displaying everything as expected ("cancel", key-accels.).
Just need to test (later) the key-combo issue (perhaps a feature?).
-even the .0009 is displaying everything as expected ("cancel", key-accels.).
Just need to test (later) the key-combo issue (perhaps a feature?).
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
Joso
- Posts: 95
- Joined: 06 Apr 2010 14:13
Re: minor glitch with accelerator keys
(just in case someone else ever comes across this thread)TheQwerty wrote:This might be correct for Vista and 7 (I cannot verify it now though): http://www.vistax64.com/vista-general/4 ... ators.html
Here's the Win 7 procedure:
go to Control Panel,
click Ease of Access
click Ease of Access Center
click Make the keyboard easier to use
select the Underline keyboard shortcuts and access keys check box.
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: minor glitch with accelerator keys
Variant of the problem:
if a script is launched from Run Script..., it'll not display the accel. keys. Pushing ALT will make the menu disappear. Any workaround for this...?
For the records, using ::load 'script' will pop the menu correctly, ie, showing the assigned accel. keys.
if a script is launched from Run Script..., it'll not display the accel. keys. Pushing ALT will make the menu disappear. Any workaround for this...?
For the records, using ::load 'script' will pop the menu correctly, ie, showing the assigned accel. keys.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
XYplorer Beta Club