Recent

Author Topic: Conventions for menu structures  (Read 471 times)

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 284
Conventions for menu structures
« on: November 29, 2025, 11:25:10 am »
This is a general question, not specifically Lazarus (although I am using Lazaurs) - essentially, is there a style guide for menus for Windows, macOS and Linux anywhere?
My search engine is coming up blank (well, not blank, just irrelevant entries) on the Windows front. I've found how to add the application menu for macOS, which is a kindof guide?

Basically, as far as I can tell:
macOS has the application menu with "About", "Settings", separator, OS added stuff (including "Quit") first.
I've been told that Windows should have "File" first (with "Exit" being last entry) and "Help" being last (with "About" as the first entry).
Linux - I haven't a clue...assuming it follows Windows conventions.

Then, there is the question of icons on the menu items. It appears that macOS doesn't tend to have them, but Windows does.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: Conventions for menu structures
« Reply #1 on: November 29, 2025, 11:53:19 am »
https://learn.microsoft.com/en-us/windows/win32/appuistart/-user-interface-principles

But Microsoft has drifted from and to other kinds of gui in the last decade(s).  The one that Lazarus uses is called "GDI", sometimes als called simply "win32" or "windows classic".   Peak GDI was Windows 2000, and Windows XP already drifted a bit from that.
« Last Edit: November 29, 2025, 11:59:01 am by marcov »

Thaddy

  • Hero Member
  • *****
  • Posts: 18676
  • Jungle wars. And failing health it seems.
Re: Conventions for menu structures
« Reply #2 on: November 29, 2025, 12:15:24 pm »
The bible that guides most is:
"About face,The Essentials of User Interface Design, now known as  The essentials of Interaction design" by Alan Cooper et.al..
Most Linux GUI' s Windows and Apple user interfaces are designed with those books.I have the 2th and 4th editions.
You would probably want a newer version because the book has grown with more and more modern insights.
Including web and mobile.
Every serious professional has exactly this book in one version or other.
« Last Edit: November 29, 2025, 12:49:56 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1267
    • formatio reticularis
Re: Conventions for menu structures
« Reply #3 on: November 29, 2025, 12:33:52 pm »
The recommended structure for the main menu in apps for macOS and iPadOS is available from https://developer.apple.com/design/human-interface-guidelines/the-menu-bar. This collection of best practices is part of Apple’s Human Interface Guidelines (HIG).
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 4.2.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 284
Re: Conventions for menu structures
« Reply #4 on: November 30, 2025, 10:09:05 am »
Thank you all - that book looks interesting...might just have to add that to my Christmas Wish List  :D

Some good reading on those links. Thank you.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: Conventions for menu structures
« Reply #5 on: November 30, 2025, 11:32:21 am »

 

TinyPortal © 2005-2018