READONLY Property


PLBCMP GUI Only

 

The READONLY property specifies that the field is read-only or protected. The property uses the following format:

READONLY[={value}]

Note the following:

  1. READONLY may be used in CREATE, GETPROP, or SETPROP statements of an EDITTEXT, EDITNUMBER, or RICHEDITTEXT object. The SETPROP statement can change the READONLY property only when using one of these Windows runtimes ( Plbwin, Plbnet, or Plbclient/Plbserve ).

  2. Users can scroll, highlight, and copy text within the object but cannot cut, paste, or edit.

  3. If the READONLY property is specified without an assignment, the action is the same as if READONLY=1 were given.

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

  5.  

    Value

    Keyword

    The data may ...

    0

    $OFF

    be changed. (default)

    1

    $ON

    not be changed.

     

  6. When using the PL/B Web Server, the READONLY property for the PWS EDITNUMBER cannot be turned on or off using the SETPROP instruction. Also, when using the PWS EDITNUMBER with the READONLY property turned on and the UPDOWNALIGN property set to $UPDOWNALIGNLEFT or $UPDOWNALIGNRIGHT, the up/down control actions continue to change the value of PWS EDITNUMBER by the client browser.

 

 

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

 



PL/B Language Reference PUSHLIKE Property REMSERVER Property