WebPage

From Xojo Documentation


For desktop applications, see Window.

Class (inherits from WebView)


New in 2010r4

A page of the application. This is the equivalent of a window in a desktop application.

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


Properties
ContextualMenu HorizontalCenter Title
ControlID fa-lock-32.png ImplicitInstance fa-lock-32.png Top
Cursor IsImplicitInstance fa-lock-32.png VerticalCenter
DragOverStyle Left Visible
Enabled MinHeight Width fa-lock-32.png
Height fa-lock-32.png MinWidth
HelpTag Style


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

Notes

One important difference, of course, is that several pages may be displayed in the same browser window (though not at the same time, of course). But in other respects, a WebPage is very much like a desktop window. In both cases, the state of controls is managed automatically. You will only lose state when you call the Close method of a page or when the application quits. Page state is managed on a per session/per page basis. See the WebSession object. That means two sessions (two users) would each have their own state per page.

Bookmarking

Hash Tags (aka anchors or URL fragments) are used to create bookmarks to specific pages or areas of your web apps. This is an example hash tag:

http://www.example.com/#HashTag

The WebSession.HashTag property is used to change a hash tag and WebSession.HashTagChanged event is used to know when a hash tag has been changed.

For more information on hash tags, refer to the WebSession class.

See Also

WebObject, WebPageSource, WebSession, Window classes.