menuitem

Description

The menuitem describes an item of a menu (TMenuItem), a popupmenu or a menubar.

Attributes

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

Children

none.

Description of attributes

checkable

Ignored in PLUG for Delphi

checked

Specifies whether the menuitem is checked. Allowed values are true and false. The default value is false.

image

Specifies which GIF-image is drawn next to the menu-item.

onclick

Specifies whether the menuitem has an onclick event. The onclick event occurs when the menuitem 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.

text

Specifies the text for the menuitem.