From Xojo Documentation

Revision as of 15:54, 11 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As Integer )
aWebControl.HorizontalCenter = newIntegerValue
IntegerValue = aWebControl.HorizontalCenter

New in 2010r5

Supported for all project types and targets.

Specifies the horizontal center of a control on a web page, which can be used to easily center a control on the page.


For example, to center a control horizontally:

Button1.HorizontalCenter = Self.Width / 2

(Self being a WebPage in this case).