From Xojo Documentation

Revision as of 14:54, 20 December 2012 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As WebStyle )
aWebControl.Style = newWebStyleValue
WebStyleValue = aWebControl.Style

New in 2010r4

Supported for all project types and targets.

The WebStyle class to apply to the control. A WebStyle can be used to change the appearance of a control.


Add Style objects to your project and assign the desired Style to this property for each control, WebPage, and WebDialog that you wish to be styled.

In Safari, the WebPopupMenu control will not respect a style you set unless that style has a non-white background. This is a Safari limitation. Safari adds its own style to the native controls (popupmenu, checkbox, radio button, etc.) to make them appear more native-looking. This style will override any style you assign unless you change the background to something other than white. Even setting the background to 255, 255, 254 (which is as close to white as you can get without being white) will work.

See Also

WebStyle class.