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