company logo

GUIBaseContext :: asControlContext - Cast instance to ControlContext

Many function return a GUIBaseContext instance. In order to provide a save cast, this function can be called. In case the current context instance is not a control context, the function throws an exception.

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 details

odabagui::ControlContext & GUIBaseContext  :: asControlContext (  )