new popupmenu feature

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
jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

new popupmenu feature

Post by jupe »

While testing the new popupmenu/nested feature of automatically going to paths and launching exe's, I noticed that it seems it will break scripts use of popupmenu when using paths, eg.

e popupmenu("<xydata>|<xypath>");

will take you to the path in addition to the echo, another new behavior is that it will also now automatically only show the folder/file name without path, but that is probz ok in most historic scripts. Files seem ok though, just the echo is returned in that case.

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

Re: new popupmenu feature

Post by admin »

Fix on the way.

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

Re: new popupmenu feature

Post by jupe »

Confirm fixed in v22.90.0004

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

Re: new popupmenu feature

Post by jupe »

I noticed that the default icon for all menu items when used in popupmenu is now a hamburger style icon, is that intentional?

popupmenu("#302|#303|#304");

2022-03-05_150107.png
To see the attached files, you need to log into the forum.

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

Re: new popupmenu feature

Post by admin »

Actually yes. I forgot to mention it in the change log. The idea is that menu commands get the menu icon.

So, uhm, you don't like it?

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

Re: new popupmenu feature

Post by jupe »

I am not fussy, just was unexpected.

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

Re: new popupmenu feature

Post by jupe »

Actually, it blocks items that have a checked state from displaying it though, eg:

popupmenu("#480|#801");

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

Re: new popupmenu feature

Post by admin »

Argh! :blackstorm: MS's age-old bug of having symbols and ticks in the same place will haunt us forever...

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

Re: new popupmenu feature

Post by jupe »

While testing this I noticed that none of the scripting menu's items display their checked state in popupmenus/HB, unlike when shown in the main menu, not sure if that was already known, so thought I'd mention it, its like this in older versions too, so not a new issue.

popupmenu("#750|#758");

Additionally since we're on the subject, a fair few of the main submenu items don't show state, that may be by design though:

popupmenu("#681|#682|#687|#402|#404"); // 687 works though, so some submenu items do

that isn't a complete list, it was just an example of a few CIDs that don't.

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

Re: new popupmenu feature

Post by admin »

A neglected area indeed. Will be better in the next beta.

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

Re: new popupmenu feature

Post by jupe »

I noticed these still aren't working: popupmenu('#691|#692|#693|#694');

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

Re: new popupmenu feature

Post by admin »

Thanks!

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

Re: new popupmenu feature

Post by jupe »

You're going to hate me, but #702 #703 too.

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

Re: new popupmenu feature

Post by admin »

Well I hope you don't hate me for letting you find all those bits instead of fixing the whole thing for good.

Post Reply