menu

Description

The menu tag describes an menu or submenu (TMenuItem) that can either be on a menubar, or in a popupmenu.

Attributes

    backgroundcolor
    fontbold
    fontitalic
    fontname
    fontsize
    fontunderline
    foregroundcolor
    id (required)
    image
    onclick (false)
    oncreate (false)
    ondestroy (false)
    state (enabled)
    tearoff (false)
    text

Children

menuitem menu menuseparator

Description of attributes

image

Specifies which GIF-image is drawn next to the menu's title.

onclick

Specifies whether the menu has an onclick event. The onclick event occurs when the menu is clicked with the left mouse button. When the value of this attribute is true, an entry, for handling the event, will be created in the code-frame of the parent window. This attribute can have the values true or false. The default value is false.

tearoff

Ignored in PLUG for Delphi.

text

Specifies the text to be used for the menu.