jianfa.tsai 8 Posted April 9, 2020 Share Posted April 9, 2020 In Evernote Windows, when user selects multiple notes via note list, why aren't those app functions top first level menu greyed out? The second level sub-menu is greyed out but the first level menu isn't. If the subcommands don't work, then everything to the first level menu should be greyed out e.g. "Format" and others. Please test all. Link to comment
dcon 166 Posted April 9, 2020 Share Posted April 9, 2020 Because that's not how Windows works... There are event handlers for each menu item. These dynamically enable/disable those items based on the menu identifier. But there are no event handlers for the parent menus because those items have no identifier. As a side note, those items not having an identifier make it very "interesting" when you want to add/remove a menu hierarchy. Link to comment
jianfa.tsai 8 Posted April 9, 2020 Author Share Posted April 9, 2020 Thank you for the reply. Since the parent menu cannot be grey. Why are some first level child menu (see screenshot) e.g. "Font" child menu greyed and other child menus e.g. Paragraph and Style not greyed? It is technically feasible for the child menu Font to be greyed thus why not grey all other first level child menu where the sub commands doesn't work? Link to comment
Level 5* jefito 5,598 Posted April 10, 2020 Level 5* Share Posted April 10, 2020 Same answer, most likely: The Paragraph entry doesn't have an ID (there's no "Paragraph" command), only its children do, e.g. "Left" (= aligh left), "Right" (= "align right"), etc. Is this a problem? Link to comment
dcon 166 Posted April 10, 2020 Share Posted April 10, 2020 Exactly. It doesn't matter what level a menu item is at - it matters whether that item has children. An item with children is a very different beast (in Windows-land) than an item that performs an action. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now