APPEARANCE Property


PLBCMP GUI Only

square.png Objects

 

The APPEARANCE property defines the appearance of an object. The property uses the following format:

 

APPEARANCE={value}

Note the following:

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

  2. This property replaces the STYLE property that is now obsolete.

  3. If this property is not specified, the default appearance is determined by the current SETMODE *3D state. If the SETMODE *3D state has not been specified, the appearance defaults to the same setting as defined for the window.

  4. Setting the APPEARANCE property of a TOOLBAR to $FLAT or a value of two, individual buttons will highlight as the mouse cursor passes over the button. This is the standard operation of a Windows native toolbar control as documented and implemented by the Microsoft.

  5. {value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:

  6.  

    Value

    Keyword

    The appearance is ...

    1

    $3D

    three-dimensional.

    2

    $FLAT

    two-dimensional.

     

  7. Using the LABELTEXT object for the PL/B Web Server runtime, the APPEARANCE property has extended appearance values that are defined as follows (9.7C). The $LISTLBL, $H1, and $PROG appearance styles are implemented as CSS styles based on Apple guidelines targeting small screen IOS devices. These appearance styles provide a consistent presentations for IPhone, IPad, and Android devices. The default style settings are defined in the 'plbwebbasic.css' classes described for each appearance value. The PLB user application can override these default style settings using the PLBWEB_USER_CSS user classes, using the WEBCLASS property or implementing the styles in the plbwebphone.css\plbwebipad.css classes.

  8.  

    Value

    Keyword

    The appearance is ...

    1

    $3D

    three-dimensional presented using a combination of PLB CSS classes named 'lt' and 'bs1'. Note, 'bs1' is used for all PLB object types.

    2

    $FLAT

    two-dimensional presented using a combination of PLB CSS classes named 'lt' and 'bs2'. Note, 'bs2' is used for all PLB object types.

    3

    $LIST

    HTML <ul> list stacked as tabs in a vertical orientation with the PLB CSS class 'ltl' styles being applied. This appearance style is only set when the object is CREATEd. When this appearance style is used, the TEXT property can contain items separated by a '|' character or by CRLF characters.

    4

    $H1

    a HTML <h1> header presentation with the PLB CSS class 'lth' styles applied. This appearance style is only set when the object is CREATEd.

    5

    $PROG

    a simple HTML <div> presented using the PLB CSS class 'ltp' styles applied to give a semi-transparent background. This appearance style is only set when the object is CREATEd.

 

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

 



PL/B Language Reference ANGLE Property ARRANGE Property