VISIBLE Property


PLBCMP GUI Only

square.png Objects

 

The VISIBLE property specifies whether an object is visible or hidden. The property uses the following format:

VISIBLE={value}

Note the following:

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

  2. Changing an object's VISIBLE property from $OFF to $ON is the same as executing an ACTIVATE statement without an activation routine for the object. However, if the VISIBLE property is set $ON and the object is already visible, the object remains visible and no change occurs.

  3. Changing an object's VISIBLE property to $OFF is the same as executing a DEACTIVATE statement for the object.

  4. The VISIBLE property is ignored during the CREATE statement of a WINDOW object when the WINTYPE property is $MODAL. This is not allowed since the program execution remains at the ACTIVATE statement while the $MODAL dialog is processed. If the VISIBLE property were allowed, the program execution would remain at the CREATE statement causing a program to hang since no events could be registered.

  5. The VISIBLE property for the MREGION object causes activation or deactivation of the mouse region as per the property value provided.

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

  7.  

    Value

    Keyword

    The object is ...

    0

    $OFF

    invisible. (default)

    1

    $ON

    visible.

 

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

 



PL/B Language Reference VIEWSTYLE Property WEBCLASS Property