Menu Item Type Property
Description
Specifies the type of menu item: Plain, Check, Magic, Radio, or Separator. The type determines how the item is displayed and whether the item can have an associated command.
Applies to:
menu items
Set Oracle Forms
Plain
Usage Notes
- The following menu item types are available:
- Plain
Default. Standard text menu item.
- Check
Indicates a Boolean menu item that is either Yes or No, checked or unchecked.
Whenever the end user selects a Check menu item Oracle Forms toggles
the state of that item and executes the command associated with that menu
item, if there is one.
- Magic
Indicates one of the the following predefined menu items: Cut, Copy, Paste,
Clear, Undo, About, Help, Quit, and Window.
Magic menu items are automatically displayed in the native style of the
platform on which the form is executed, in the position determined by the
platform's conventions, with the appropriate accelerator key assigned. Cut,
Copy, Paste, Clear, Windows, and Quit have Built-in functionality supplied
by Oracle Forms, while the other magic menu items require that commands
be associated with them.
- Radio
Indicates a BOOLEAN menu item that is part of a radio group. Enter a radio
group name in the Radio Group property field. One and only one Radio menu
item in a group is selected at any given time.
When the end user selects a Radio menu item, Oracle Forms toggles the
selection state of the item and executes its command, if there is one.
- Separator
A line or other cosmetic item. You specify a Separator menu item for the
purpose of separating other menu items on the menu. A
Separator menu item cannot be selected and therefore it cannot have a command
associated with it.
- You can use GET_MENU_ITEM_PROPERTY and SET_MENU_ITEM_PROPERTY to get and
set the state of check and radio menu items.
- Magic menu items Cut, Copy, Clear, and Paste are automatically enabled and
disabled by Oracle Forms. You can also use GET_MENU_ITEM_PROPERTY and SET_MENU_ITEM_PROPERTY
to get and set the state of magic menu items programmatically, but the result
of disabling magic menu items will vary, depending on the behavior of the
native platform.
Menu Item Type Restrictions
The top-level menu should only have plain or magic menu items.