WebView

From Xojo Documentation

Class (inherits from WebControl)


New in 2010r4

The super class for all other classes that can contain objects. WebPage, WebDialog and WebContainer are all WebViews.

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


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


Methods
AcceptPictureDrop Close ExecuteJavaScript
AcceptRawDataDrop ControlAtIndex MsgBox
AcceptTextDrop ControlCount PresentContextualMenu
AllowPictureDrag ControlWithId SetFocus
AllowRawDataDrag ControlWithName ShowURL
AllowTextDrag ControlsWithName

Examples

This code displays all the WebControls on the page:

Var webObj As WebObject
Var output As String

output = "Controls on this page: " + EndOfLine
For i As Integer = 0 To Self.ControlCount-1
webObj = Self.ControlAtIndex(i)

If webObj IsA WebControl Then
output = output + webObj.Name + EndOfLine
End If
Next

MsgBox(output)

See Also

WebControl, WebPage, WebDialog, WebContainer, WebYouTubeMovie