company logo

ControlContext :: createField - Create field

The function creates a field control for the current control or window. The field name must refer to a field defined as element of the control resource. Thus, the function allows activating control elements later on, which had been disabled (auto_open = false) when opening the control.

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 & ControlContext  :: createField ( odaba::String &sResource, bool bDesignMode, odabagui::Point &cPoint, int32 iResourceID )
  • sResource - Name of resoure

    "ok_button"        // button in the current window

    "address.street"   // line edit in the address subwindow

    ".name"            // line edit in the upper control (window)

  • bDesignMode - Indicates design mode

    This option should be set to false when calling the function from within an application. The value has to be passed as true in order to enable design mode for the control.

  • cPoint - Constant area position
  • iResourceID - Internal resource identification

    The internal resource identification is a unique number within the resource database of a project. The number is assigned to the resource on demand.