WebLink

From Xojo Documentation
Jump to: navigation, search

Class (inherits from WebTextControl)

Create a clickable label that navigates to the specified URL when clicked.

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


Properties
ContextualMenu LockBottom Style
ControlID ReadOnlyProperty.png LockHorizontal Target
Cursor LockLeft Text
DragOverStyle LockRight TextAlign
Enabled LockTop Top
HasFocusRing LockVertical URL
Height MultiLine VerticalCenter
HelpTag Name ReadOnlyProperty.png Visible
HorizontalCenter Page ReadOnlyProperty.png Width
Left Parent ReadOnlyProperty.png Zindex


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

Notes

Clicking the WebLink navigates to the specified URL, exiting the web application. If you want to display the page at the URL within your web app, you should use a WebHTMLViewer instead.

You can use the Target property to have the URL open in another browser window or tab.

To navigate to other pages within your app, use the WebPage.Show method. See WebLink.URL.

Example

Specify the URL for a WebLink to navigate to Wikipedia:

Link1.URL = "http://www.wikipedia.org"

See Also

WebControl, WebLabel

Personal tools
Namespaces

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