ControlContext :: button - Get button context by button name
The function searches for a subordinated button with the name passed in sButton. When a name has been used several times, the function returns the context for the first button with the given name.
The button name might be defined as context path, which refers to the control hierarchy starting with the current control. In order to go up one or more levels in the hierarchy, a corresponding number of dots may precede the path.
button("OK"); // look for OK button for current control
button("..OK"); // look for OK button for parent-parent-control
button("address.OK"); // look for OK button in the subordinated address form
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
- sButton
- Button name
"OK" // look for OK button for current control
"..OK" // look for OK button for parent-parent-control
"address.OK" // look for OK button in the subordinated address form