Web.SetProperties

Web.SetProperties (

string ObjectName,

table Properties )

Description

Sets the properties of a web object.

Parameters

ObjectName

(string) The name of the web object.

Properties

(table) A table containing the web object's properties indexed by the following keys:

KEY

TYPE

DESCRIPTION

URL

string

The URL to load into the web object

ShowBorder

boolean

True if the object should show a border, false if it should not.

ShowScrollbars

boolean

True if the object should show vertical and horizontal scrollbars, false if it should not.

Enabled

boolean

True if the web object should be enabled, false if it should not be.

Visible

boolean

True if the web object should be visible, false if it should not be.

X

number

The horizontal position (in pixels) of the top left corner of the web object in relation to the current page or dialog.

Note: The top left corner of the current page or dialog has an X value of 0

Y

number

The vertical position (in pixels) of the top left corner of the web object in relation to the current page or dialog.

Note: The top left corner of the current page or dialog has a Y value of 0

Width

number

The width (in pixels) of the web object.

Height

number

The height (in pixels) of the web object.

ResizeLeft

boolean

True if the left side of the object should move when the application is resized, false if it should not.

ResizeRight

boolean

True if the right side of the object should move when the application is resized, false if it should not.

ResizeTop

boolean

True if the top of the object should move when the application is resized, false if it should not.

ResizeBottom

boolean

True if the bottom of the object should move when the application is resized, false if it should not.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions