button

Description

The button tag creates an button element (TButton without image and TBitBtn with image) in its parent. It can contain an image or text. But the image is not yet supported in this version of PLUG for Delphi.

Attributes

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

Children

none.

Description of attributes

image

Specifies which GIF-image is used to place next to the caption. When an image-attribute is supplied, the button is transformed to a TBitBtn (otherwise to a TButton).

onclick

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

text

Specifies the text to be displayed in the button element.