GPLabel

Unit : GPButtonUnit
Association : GPLabelAsn
Inherits from : None

Description

A labeled area in a window. The text is centered inside a rectangle designated by the label's height and width. The difference between this class and GPText is that GPLabel can be placed inside GPManagers and GPText is drawn in a GPDrawingArea.

Public Interface

CONSTRUCTOR Init (containerLink: GPManagerAsn);
Initializes a GPLabel.

DESTRUCTOR Destroy; VIRTUAL;
Destroys a GPLabel.

PROCEDURE SetName (name: string);
Clears the label and resets the string displayed by it .

PROCEDURE SetWidth (width: integer);
Establishes the width of the rectangle where the label appears.

PROCEDURE SetHeight (height: integer);
Establishes the height of the rectangle where the label appears.

PROCEDURE SetNameWithInt (num: integer);
Establishes the width of the rectangle where the label appears.

PROCEDURE SetNameWithReal (num: real);
Establishes the width of the rectangle where the label appears.

Subclasses

GPButton, GPPushButton, GPToggleButton

Please report any problems with GP or the documentation to GP Support .


GP Home Page GP Documentation
Loring Holden