company logo

ControlContext :: readOnly - Read-only property

The read-only property allows changing the access permission to the control. Controls set to read-only appear as normal active controls with a disabled label and do not allow entering data. Context menu and actions for the control are still active.

Defining the data source for a control as read-only sets a permanent read-only state for the control, which cannot be changed. Data sources definedas update or write might be set to read-only by changing the read-only property.

Return value:  Read-only option ( bool  )

In order to indicate read-only state, the value is true, false otherwise.

Implementation overview

Implementation details

  1. Get read-only state
    bool ControlContext  :: readOnly (  )

    The function returns the read-only state for the control. When the control permits entering data, the function returns true, false otherwise.

  2. to list
  3. Change read-only state
    bool ControlContext  :: readOnly ( bool bReadOnly )

    The function changes the read-only state of the control. Passing true to the function will enable the read-only state, passing false will disable the read-only state.

    • bReadOnly - Read-only option

      In order to indicate read-only state, the value is true, false otherwise.

  4. to list