WEBCLASS Property


PLBCMP GUI Only

square.png Objects

 

The WEBCLASS property specifies a class name that must exist in one of the Cascading Style Sheet (.css) files in use by the PL/B Web Server client. This property is available for most GUI object allowed for the PL/B Web Server client. The property uses the following format:

WEBCLASS={class_name}

Note the following:

  1. WEBCLASS may be used in CREATE, SETPROP or GETPROP statements.

  2. The {class_name} is case sensitive.

  3. This property is only available when using the PL/B Web Server.

  4. The property is not supported for the MENU, SUBMENU, COLOR, FONT, or TIMER objects.

  5. The 'WEBCLASS' property supports a behavior control where the first character of {class-name} string can be a '=', '+', or a '-' character (9.7C). If none of these characters are specified as the first character in the {class-name}, the web server runtime applies the user Web Class where default PLB styles (i.e., TOP, LEFT, HEIGHT, WIDTH, BGCOLOR) override the WebClass styles. If one of behavior control characters is specified as the first character of {class-name) string when the object is created, the object is generated with the runtime default styles are limited as follows:

  6.  

    Character

    Description

    =

    No HTML object CSS styles are applied except the ZORDER and VISIBLE properties. In this case, the WEBCLASS user classes control all of the HTML object styles except the ZORDER and VISIBLE PL/B properties in a CREATE instruction.

    +

    No HTML object CSS styles are applied except the ZORDER, VISIBLE, TOP, and LEFT properties. In this case, the WEBCLASS user classes control all of the HTML object styles except the ZORDER, VISIBLE, TOP, and LEFT PL/B properties in a CREATE instruction.

    -

    No HTML object CSS styles are applied except the ZORDER, VISIBLE, TOP, LEFT, HEIGHT, and WIDTH properties. In this case, the WEBCLASS user classes control all of the HTML object styles except the ZORDER, VISIBLE, TOP, LEFT, HEIGHT, and WIDTH PL/B properties in a CREATE instruction.

 

 

Example use of WEBCLASS behavior characters:

 

LT LABELTEXT

UserCss INIT "=ltp"

.

       CREATE LT=50:90:10:100,"Test Label",WEBCLASS=UserCss

.

In this case, the LABELTEXT is created with a user Web Class named 'ltp' being used. The leading '=' character indicates that all of the CSS styles for the HTML object are defined in the 'ltp' CSS class with the exception of ZORDER (i.e., CSS style z-index).

 

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference VISIBLE Property WEBCLASS Property (DATATABLE)