ControlContext :: buttonExist - Check whether button exists or not
The function searches for a subordinated button with the name passed in sButton . When a button with the name passed has been found, the function returns true .
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.
buttonExist("OK"); // look for OK button for current control
buttonExist("..OK"); // look for OK button for parent-parent-control
buttonExist("address.OK"); // look for OK button in the subordinated address form
A State true indicates, that the function was executed successfully. Otherwise state is false .
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