"Application" button like in web-browsers

Features wanted...
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

"Application" button like in web-browsers

Post by Marco »

Yes, I know XY is not a web-browser (well, it's a file-system browser and manager...).
However I was wondering if there are any plans to add a toolbar button that contains all the menu bar items, roughly like in the pic (there should be an arrow at the right of each line, like in standard menus). I would have done it myself if it was possible via scripting.
I think such addition is very "contemporary" and helps saving a few vertical pixels (and those using widescreens know that even a few vertical pixels make a huge difference).
Attachments
Appunti-20130714.png
Appunti-20130714.png (11.25 KiB) Viewed 3984 times
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: "Application" button like in web-browsers

Post by admin »

Cool idea, but very difficult if e.g. "File" shall have its contents as fly-out right in the parent menu ("File >").

Nighted
Posts: 463
Joined: 21 Jan 2007 01:58
Location: Gitmo Nation North, Win 7/10/Linux/(x64)

Re: "Application" button like in web-browsers

Post by Nighted »

Is this not currently possible using custom buttons and scripting? I have toggled the menu off and added menus for those items I might need to access.
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: "Application" button like in web-browsers

Post by Marco »

That's a pity :(
I would have asked why it is so difficult, but since you don't enjoy talking about code anymore I keep my mouth shut. But I still hope to see it someday :roll:

PS: right click on a Catalog item pops a menu with two items (Insert as new category here and Insert as new item(s) here) which have fly-outs...
Nighted wrote:Is this not currently possible using custom buttons and scripting? I have toggled the menu off and added menus for those items I might need to access.
Can you create something like the menu in Opera or Firefox similar to the screenshot above?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: "Application" button like in web-browsers

Post by admin »

The main menu items (File, Edit etc) are not children of any top menu, but they are top menus each.

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

Re: "Application" button like in web-browsers

Post by admin »

Marco wrote:Can you create something like the menu in Opera or Firefox similar to the screenshot above?
Where in Firefox is that button? I don't seem to have it.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: "Application" button like in web-browsers

Post by Marco »

Top left of Firefox window. It's orange.

PS: I understand. And maybe that's the reason why with # commands we can only open submenus of File, Edit etc?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: "Application" button like in web-browsers

Post by admin »

Not here (firefox ESR 17.0.7).

PS: Yes, kind of the reason.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: "Application" button like in web-browsers

Post by Marco »

Image
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: "Application" button like in web-browsers

Post by admin »

No such button here. Anyway, it's not possible for XY so don't bother.

Nighted
Posts: 463
Joined: 21 Jan 2007 01:58
Location: Gitmo Nation North, Win 7/10/Linux/(x64)

Re: "Application" button like in web-browsers

Post by Nighted »

It is my understanding that so long as a menu command has a corresponding ID, then you can create a custom button and populate the menu with any functions that you wish. I don't think you can create sub menus on the button though, only separators.

So this is possible for the end user to create already unless I am missing something here.
I want XY to serve soft ice cream. Please Don, make XY serve soft ice cream.

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: "Application" button like in web-browsers

Post by PeterH »

admin wrote:No such button here.
If I understand it right it's shown if the menus are hidden.
(Right-click in menus, de-select "Menüleiste")

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

Re: "Application" button like in web-browsers

Post by admin »

PeterH wrote:
admin wrote:No such button here.
If I understand it right it's shown if the menus are hidden.
(Right-click in menus, de-select "Menüleiste")
Aha! Yo, now I got it! But, at least with Firefox, it does not feature the main menu (File, Edit, etc), but a collection of important commands. So they also did not manage to do it. :P

Regmos
Posts: 268
Joined: 22 Dec 2012 07:27
Location: Copenhagen

Re: "Application" button like in web-browsers

Post by Regmos »

...So they also did not manage to do it.
A couple of extensions that does the trick.

Compact Menu

Personal Menu
Kind regards
Regmos

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: "Application" button like in web-browsers

Post by TheQwerty »

Scripting it so that it stays current by dynamically generating the menu is very difficult, and even so you'll still be missing some things:
  1. You cannot retrieve the checked state for all of the stateful items.
  2. You cannot retrieve the enabled state, so you have to determine and build in that smartness on your own if desired.
  3. To retrieve the command IDs requires the user copying the contents of the List All Commands dialog, probably each time an XY version change is detected.
  4. Scripting lacks true sub-menus which means you have to either get creative or rude in how you handle a user wanting to return to a parent menu.
  5. To offer the access keys you need to retrieve the true captions. This means becoming proficient in parsing the language files, and since they likely won't exist for an English user you'll need another way to retrieve the English captions. The only reliable way I know is to extract them from XYplorer.exe which is messy and/or creates a dependency on strings.exe.

A long time ago I had a proof of concept script that accomplished all but the first two of those. It required strings.exe and a python script and was before XY was translated so it only supported English. Today it's broken because using strings.exe to extract captions from XYplorer.exe is messy, stupid, and the addition of a file menu to the Interface Translation Tool has broken my python script.

Now that XY is translated it would be ideal to use the user's desired language for the menu captions, but that doesn't seem easy, and creates a big question of what to do when the user wants English and there is no local lng file to reference.


Hitting this roadblock in how to retrieve the menu captions has kind of killed my desire to finish rewriting this script. Any suggestions?

Post Reply