Class TAdBitmapButton

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdBitmapButton = class(TAdComponent)

Description

A simple button, which uses bitmap resources to draw.

Hierarchy

Overview

Methods

Public constructor Create(AParent:TAdComponent); override;
Public destructor Destroy; override;
Public procedure LoadFromXML(aroot:TAdSimpleXMLElem); override;
Public function SaveToXML(aroot:TAdSimpleXMLElems): TAdSimpleXMLElem; override;

Properties

Public property State: TAdButtonState read FState;
Published property ImgNormal: TAdResourceImage read FImgNormal;
Published property ImgHover: TAdResourceImage read FImgHover;
Published property ImgDown: TAdResourceImage read FImgDown;
Published property ImgDisabled: TAdResourceImage read FImgDisabled;
Published property ImgCheckedHover: TAdResourceImage read FImgCheckedHover;
Published property Down: boolean read FDown write SetDown;
Published property CheckButton: boolean read FCheckButton write FCheckButton;
Published property AutoSize: boolean read FAutoSize write FAutoSize;
Published property GroupIndex: integer read FGroupIndex write SetGroupIndex;

Description

Methods

Public constructor Create(AParent:TAdComponent); override;

Creates an instance of TAdBitmapButton.

Public destructor Destroy; override;

Destroys the instance of TAdBitmapButton.

Public procedure LoadFromXML(aroot:TAdSimpleXMLElem); override;

Loads the settings and pictures from XML

Public function SaveToXML(aroot:TAdSimpleXMLElems): TAdSimpleXMLElem; override;

Stores the settings and pictures in XML

Properties

Public property State: TAdButtonState read FState;

Returns the state of the button.

See also
TAdButtonState
Defines the state a button control is currently in.
Published property ImgNormal: TAdResourceImage read FImgNormal;

The image, which is used to draw the button in its normal state.

Published property ImgHover: TAdResourceImage read FImgHover;

The image, which is used to draw the button in its hover state

Published property ImgDown: TAdResourceImage read FImgDown;

The image, which is used to draw the button when it is down.

Published property ImgDisabled: TAdResourceImage read FImgDisabled;

The image, which is used to draw the button when it is disabled.

Published property ImgCheckedHover: TAdResourceImage read FImgCheckedHover;

The image, which should be drawn when the button is down (checked) and hovered.

Published property Down: boolean read FDown write SetDown;

Set wether the button should be down. Only possible, if groupindex is unequal zero or checkbutton is true

Published property CheckButton: boolean read FCheckButton write FCheckButton;

Set this to true, if the button should behave like a checkbox.

Published property AutoSize: boolean read FAutoSize write FAutoSize;

If true, the button is sized to the size of the "normal" image.

Published property GroupIndex: integer read FGroupIndex write SetGroupIndex;

If groupindex is unequal zero, TAdBitmapButton will behave like a radio button. It is grouped with all other TAdBitmapButtons with the same group index on the same parent element.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59