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.

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

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

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


This code displays all the WebControls on the page:

Dim webObj As WebObject
Dim 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


See Also

WebControl, WebPage, WebDialog, WebContainer, WebYouTubeMovie