CFA & Menu accelerator

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
MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

CFA & Menu accelerator

Post by MBaas »

I have 2 CFAs that use the same menu accelerator ("&V").

When this happens in other menus, the usual way of dealing with it is to jump from one matching item to the next. However, pressing "V" on #176 (with the first item also matching V) selects the 2nd matching item...

I hope the description is clear, but here's a screenshot, too:
18-01-2024_18-59-54.png
To see the attached files, you need to log into the forum.
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

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

Re: CFA & Menu accelerator

Post by admin »

This popup menu is a Windows control, and it's controlled by Windows.

I made a simple version of your case and it works fine here:

Code: Select all

text popupmenu("HTML CSS &Validator|&View");

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: CFA & Menu accelerator

Post by MBaas »

That works fine here as well.
But the CFA still behaves as it does, so there must be more to it...
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

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

Re: CFA & Menu accelerator

Post by admin »

Tried to replicate it with CFA but again it works fine. Can you post your CFA definitions relevant to this menu?

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: CFA & Menu accelerator

Post by MBaas »

Sure, here they are:

Code: Select all

"Html & CSS &Validator|C:\Program Files\HTMLValidator240\chv240.exe" htm;html;css > ::run "C:\Program Files\HTMLValidator240\chv240.exe" "<curitem>"
"&HtmlPad|C:\Program Files (x86)\HTMLPad 2022\htmlpad.exe" html>::run "C:\Program Files (x86)\HTMLPad 2022\htmlpad.exe" "<curitem>"
|"&View|C:\Program Files (x86)\V\v.exe" *>::run lax("C:\Program Files (x86)\V\v.exe" -TEXT  "<curitem>");
|"View &tail|C:\Program Files (x86)\V\v.exe" *>::run lax("C:\Program Files (x86)\V\v.exe" -TEXT  -E -T "<curitem>");
I hope it repros (on an .html file).
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

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

Re: CFA & Menu accelerator

Post by admin »

Got it. It's the & in "Html & CSS". Escape it by doubling it: Html && CSS

MBaas
Posts: 692
Joined: 15 Feb 2016 21:08

Re: CFA & Menu accelerator

Post by MBaas »

Aaaaah - I didn't notice that! :oops: Thanks!
____________________________________________________________________________________
Happy user. Screen scaling 100% and W11Pro [Version 10.0.26200.7922], XY 28.30.14000 * * LinkTree

Post Reply