This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||
|
4D v19
Setting menu properties
|
Key | Operation |
Ctrl+C | Copy |
Ctrl+Q | Quit |
Ctrl+V | Paste |
Ctrl+X | Cut |
Ctrl+Z | Undo |
Ctrl+. (period) | Stop action |
Under Mac OS, use Command instead of Ctrl.
To assign a keyboard shortcut:
Note: An active object can also have a keyboard shortcut. If the Ctrl/Command key assignments conflict, the active object takes precedence. For information on assigning keyboard shortcuts to active objects, see Keyboard shortcut.
You can specify whether a menu item will appear enabled or disabled. An enabled menu command can be chosen by the user; a disabled menu command is dimmed and cannot be chosen.
Unless you specify otherwise, 4D automatically enables each menu command you add to a custom menu. You can disable an item in order, for example, to enable it only using programming (ENABLE MENU ITEM and DISABLE MENU ITEM commands).
When the Enabled Item check box is unchecked, the menu command appears dimmed, indicating that it cannot be chosen.
This option can be used to associate a system check mark with a menu item. You can then manage the display of the check mark using language commands (SET MENU ITEM MARK and Get menu item mark).
Check marks are generally used for continuous action menu items and indicate that the action is currently underway:
4D lets you customize menus by applying different font styles to the menu commands. You can customize your menus with the Bold, Italic or Underline styles.
As a general rule, apply font styles sparingly to your menus — too many styles will be distracting to the user and give a cluttered look to your application.
To apply a style, select the menu command you want to modify and then choose the style using the check boxes.
The Item icon area can be used to associate an icon with the selected item. To define the icon, you can use a picture file or a picture stored beforehand in the 4D Picture Library.
Compatibility Note: The Picture library is deprecated and is not supported in 4D database projects. It is recommended to use picture files on disk.
When you click on the area associated with this option, a hierarchical pop-up menu appears so that you can select a picture from the disk (Open) or from the Picture Library:
Note: The Library Pictures item is not displayed:
When you choose Open and select a picture file that is not stored in the database resources folder; it is automatically copied in that folder.
Once set, the item icon appears in the preview area:
It is displayed directly in the menu, next to the item:
To remove the icon from the item, choose the No Icon option from the “Item Icon” area.
Product: 4D
Theme: Menus and menu bars
4D Design Reference ( 4D v19)