KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Customizing your menu item labels
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: January 24, 2007

If you want to change the text of any menu item, you can use the SET MENU ITEM command:

https://www.4d.com/docs/CMU/CMU00348.HTM

This command is great for when you need to change the text on the fly. However, the use of this command can be overkill when the change must be made only once, when launching the application for example.

When defining the title of your menu item, you can assign a reference to a string resource instead of a string literal (ex: 15000,1) and define your labels with string resources. You can then open another resource file or update the string resources to change menu item titles in your menu bars.

Note: your own resources ID must start from 15000. IDs under 15000 are reserved for 4D.