WebLabel

From Xojo Documentation


For desktop applications, see Label.

Class (inherits from WebTextControl)

Used to display a text label on a web page.

Events
Close KeyPressed MouseUp
ContextualMenuAction LostFocus Open
DoubleClick MouseDown Resized
DropObject MouseEnter Shown
GotFocus MouseExit
Hidden MouseMove


Properties
ContextualMenu Left Text
ControlID fa-lock-32.png LockBottom TextAlign
Cursor LockHorizontal Top
DragOverStyle LockLeft VerticalCenter
Enabled LockRight Visible
HasFocusRing LockTop Width
Height LockVertical Zindex
HelpTag Multiline
HorizontalCenter Style


Methods
AcceptPictureDrop AllowRawDataDrag MsgBox
AcceptRawDataDrop AllowTextDrag PresentContextualMenu
AcceptTextDrop Close SetFocus
AllowPictureDrag ExecuteJavaScript ShowURL

Examples

Change the text of a label:

Label1.Text = "Enter your name:"

If you want to display text that wraps to multiple lines, set the Multiline property to True:

Label1.Multiline = True
Label1.Text = "How much wood would a woodchuck chuck if a woodchuck could chuck wood?"

See Also

Label, WebLink, WebSearchField, WebTextArea, WebTextControl, WebTextField