company logo

ControlContext :: createButton - Create Button

The function creates a button for the current control or window. The button name must refer to a button 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  :: createButton ( odaba::String &sResource, 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)

  • 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.