SetWebStyle Method
PLB Web Only, 9.7C
The SetWebStyle method sets a specific CSS style for a PWS object which is implemented as a visible HTML object.
|
|
|
|
|
|
|
|
Where:
Where:
Flags Affected: EOS, OVER, ZERO
Note the following:
This method dynamically changes the CSS styles as described at this link:
http://www.w3schools.com/css/default.asp
The EOS flag is always cleared.
The ZERO flag is always set to TRUE with a return value of zero.
The OVER flag is always cleared.
If the SetWebStyle method changes the physical characteristics of an HTML object, the GETPROP instruction {pwsobject} property values will not reflect the HTML object changes.
Go to this W3School link for detailed CSS style information that can be used in
the 'CssName' and 'StrValue' parameters for the SetWebStyle method.
http://www.w3schools.com/css/default.asp
The optional {flags} bit mask values changed the executions behavior of the SetWebStyle method as follows:
|
Value |
Meaning |
|
0x1 |
This bit value causes the CSS style to be applied to the HTML <div> enclosing the {object} HTML object. |
|
0x2 |
This bit mask value allows CSS styles to be set for the HTML label of the web objects CHECKBOX, GROUPBOX, and RADIO. |
Example PWS SetWebStyle:
See Also: Objects
![]() |