Label

From Xojo Documentation
Jump to: navigation, search


For web applications, see WebLabel.

Class (inherits from RectControl)

Displays read-only text.

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 ReadOnlyProperty.png LockRight TextAlign
AutoDeactivate LockTop TextColor
Bold MouseCursor TextFont
DataField MouseX ReadOnlyProperty.png TextSize
DataSource MouseY ReadOnlyProperty.png TextUnit
Enabled Multiline Top
Handle ReadOnlyProperty.png Name Transparent
Height PanelIndex TrueWindow ReadOnlyProperty.png
HelpTag Parent Underline
Index ReadOnlyProperty.png Scope ReadOnlyProperty.png Visible
Italic Selectable Width
Left TabIndex Window ReadOnlyProperty.png
LockBottom TabStop
LockLeft Text


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
Namespaces

Variants
Actions
Main
Content
Starting Out
Dig Deeper
More Help
Toolbox
About