4D Blog

Home Product Create a Help Menu with a Simple Collection

Create a Help Menu with a Simple Collection

April 25, 2023

Product

The “Help” menu of a software is handy. Obviously, you have a menu item to open the online documentation of the software, but also how to contact the support, and several other items depending on the software.

With 4D v20, you can easily create your application’s “Help” menu by passing a collection describing the different menu items.

A new command SET HELP MENU is available. You just have to pass a collection of objects to this command. Each object represents a menu item. For each item, you can define the following:

  • title – the title of the menu item
  • action – a standard action that will be executed when the menu is called
  • method – a method name or a formula that will be executed when the menu is called
  • worker – the name of a worker or the number of a process 
  • shortcutAlt, shortcutShift, and shortcutKey – the shortcut to trigger the menu

 

Example:

In the following code, we create two menu items.

  • The first one calls the “methodMenu” method, and uses the shortcut key Ctrl+Alt+Y on Windows and Cmd+Alt+Y on macOS.
  • The second one calls the “Maintenance and Security Center” action and uses the shortcut key Ctrl+Shift+Y on Windows and Cmd+Shift+Y on macOS

 

var $col : Collection
$col:=New Collection
$col.push(New object( \
   "title"; "Call \"methodMenu\" method"; \
   "worker"; "workerMenu"; \
   "method"; "methodMenu"; \
   "shortcutAlt"; True; "shortcutKey"; "Y"))
$col.push(Null)
$col.push(New object( \
   "title"; "Call \"MSC\" action"; \
   "action"; ak msc; \
   "shortcutShift"; True; "shortcutKey"; "Y"))
SET HELP MENU($col)

Here is the result:

Don’t forget to consult the 4D documentation for more in-depth information on this new feature, and share your feedback and ideas on the 4D forum to help us continue improving the software.

Discuss

Tags Programming, v20

Latest related posts

  • December 3, 2025

    Give AI to a 30 years old 4D application

  • November 28, 2025

    ORDA – Handle an event-driven logic during database operations

  • November 27, 2025

    ORDA – Permissions – Restrict / allow web access to the resources in one click

Vanessa Talbot
Vanessa Talbot
• Product Owner •Vanessa Talbot joined 4D Program team in June, 2014. As a Product Owner, she is in charge of writing the user stories then translating it to functional specifications. Her role is also to make sure that the feature implementation delivered is meeting the customer need.Since her arrival, she has worked to define key features in 4D. She has worked on most of preemptive multi-threading new features and also on a very complex subject: the new architecture for engined application. Vanessa has a degree from Telecom Saint-Etienne. She began her career at the Criminal Research Institute as a developer for the audiovisual department. She has also worked in media and medical fields as expert in technical support, production as well as documenting new features.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy