Label

From Real Software Documentation

Jump to: navigation, search

     

For web applications, see WebLabel.
Class (inherits from RectControl)

Displays text that is not editable by the user. This is the replacement for the StaticText control, which is deprecated.

Constants
AlignCenter AlignLeft AlignRight


Events
AcceleratorKey DragOver MouseEnter
Close DropObject MouseExit
ConstructContextualMenu KeyDown MouseMove
ContextualMenuAction KeyUp MouseUp
DragEnter MouseDown MouseWheel
DragExit MouseDrag Open


Properties
Active LockLeft Text
AutoDeactivate LockRight TextAlign
Bold LockTop TextColor
Caption MouseCursor TextFont
DataField MouseX TextSize
DataSource MouseY TextUnit
Enabled Multiline Top
Handle Name Transparent
Height PanelIndex TrueWindow
HelpTag Parent Underline
Index Scope Visible
Italic Selectable Width
Left TabIndex Window
LockBottom TabStop


Methods
AcceptFileDrop Close RefreshRect
AcceptPictureDrop DrawInto SetFocus
AcceptRawDataDrop Invalidate SetString
AcceptTextDrop Refresh


Notes

You can define an accelerator character for a Label. In the Text property, precede the accelerator character with an ampersand. For example, the entry "&Home" signifies that the H is the accelerator. Pressing Alt+H on Windows triggers the AcceleratorKey event.


Example

The following example sets the text of the Label.

Me.Text = "Hello World"

See Also

RectControl class; TextArea, TextField control.

Personal tools