Description

Use Label to add text that the user cannot edit on a form. This text can be used to label another control.



Class: TdbLabel



Properties

 Property

 Type

 Description

 AutoSize

 Boolean

 Determines whether the size of the label automatically resizes to accommodate the text.

 Caption

 String

 Specifies a text string that identifies the control to the user.

 Cursor

 TCursor

 Specifies the image used to represent the mouse pointer when it passes into the region covered by the control. More info.

 Enabled

 Boolean

 Controls whether the component responds to mouse, keyboard, and timer events.

 Font

 TFont

 Allows you to set font name, size, color and style. More info.

 Hint

 String

 Hint contains the text string that appears when the user moves the mouse over the component, see also ShowHint

 Name

 String

 The name of the component.

 ShowHint

 Boolean

 Specifies whether to show the Help Hint when the mouse pointer moves over the component, see also Hint

 Tag

 Integer

 Allows you to assign a number to a component for your own needs.

 TagString

 String

 Allows you to assign a string to a component for your own needs.

 Visible

 Boolean

 Specifies whether the component appears onscreen.

 WordWrap

 Boolean

 Specifies whether the label text wraps when it is too long for the width of the label.

 Left

 Integer

 Specifies the horizontal coordinate of the left edge of a component relative to its parent.

 Top

 Integer

 Specifies the vertical coordinate of the upper-left of a component relative to its parent.

 Width

 Integer

 Specifies the horizontal size of the component in pixels.

 Height

 Integer

 Specifies the vertical size of the component in pixels.




Events

 Event

 Description

 OnClick

 Occurs when the user clicks the component.

 OnDoubleClick

 Occurs when the user double-clicks the left mouse button when the mouse pointer is over the component.

 OnMouseDown

 Occurs when the user presses a mouse button with the mouse pointer over a component.

 OnMouseEnter

 Occurs when the user moves the mouse into a component.

 OnMouseLeave

 Occurs when the user moves the mouse outside of a component.

 OnMouseMove

 Occurs when the user moves the mouse pointer while the mouse pointer is over a component.

 OnMouseUp

 Occurs when the user releases a mouse button that was pressed with the mouse pointer over a component.