4D v14.3Setting menu properties |
||||||||||||||||
|
4D v14.3
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 option can be used to associate an icon with the selected item. The icon to be used must be stored beforehand in the 4D . 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 Picture library:
Note: If the picture library is empty, the Library Pictures item is not displayed.
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.
You can associate a tool bar icon with a menu item. When you do so, the icon is used as a button in the toolbar associated with the menu bar in Application mode.
The icons to be used must have been stored beforehand in the 4D picture library. Selecting the picture is carried out in the same way as for menu item icons (see previous section).
The icon will be displayed in a 20 x 20 pixel frame. 4D automatically uses the text of the menu command as the help tip of the toolbar button.
Note: You can hide the Application environment toolbar in the Database Settings (see the section).
To delete a tool bar icon associated with a menu command, choose No icon in the “Toolbar Icon” drop-down list.
Product: 4D
Theme: Menus and menu bars
4D Design Reference ( 4D v14 R2)
4D Design Reference ( 4D v12.4)
4D Design Reference ( 4D v13.4)
4D Design Reference ( 4D v14 R3)
4D Design Reference ( 4D v14.3)
4D Design Reference ( 4D v14 R4)