company logo

ProjectContext :: outputContext - Control context for output control

The output control is the area, to which application output written by output() is sent. The output control has to be set by the application in order to send messages to the proper control. As output area, a multi-line edit control should be assigned.

Return value:  Control context ( odabagui::ControlContext & )

ControlContext classes are created for field (ADK_Field) as well as for control (ADK_FieldControl) resources.

When referring a field resource, the field context will overload the context implemented for the subordinated field control (control context).

Implementation overview

Implementation details

  1. Get control context for output control
    odabagui::ControlContext & ProjectContext  :: outputContext (  )

    The function returns the current context for the output control. When no control has been assigned for project output, the function throws an exception. In order to avoid unnecessary exceptions, hasOutputControl() might be called.

  2. to list
  3. Set control context for output control
    odabagui::ControlContext & ProjectContext  :: outputContext ( odabagui::ControlContext &cControlContext )

    The function registers the context for a (multi line edit) control for displaying output messages. Usually, the function is called in the doAfterOpen() handler of the context assigned to the output control.

    Previous settings for the output control will be reset.

    • cControlContext - Control context

      ControlContext classes are created for field (ADK_Field) as well as for control (ADK_FieldControl) resources.

      When referring a field resource, the field context will overload the context implemented for the subordinated field control (control context).

  4. to list