WebLabel

From Xojo Documentation
Jump to: navigation, search


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 LockBottom Style
ControlID ReadOnlyProperty.png LockHorizontal Text
Cursor LockLeft TextAlign
DragOverStyle LockRight Top
Enabled LockTop VerticalCenter
HasFocusRing LockVertical Visible
Height Multiline Width
HelpTag Name ReadOnlyProperty.png Zindex
HorizontalCenter Page ReadOnlyProperty.png
Left Parent ReadOnlyProperty.png


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

Personal tools
Namespaces

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