To determine the priorLabel in the Win32 technology domain, all labels and groups in the same window as the target control
are considered. The decision is then made based upon the following criteria:
- Only labels either above or to the left of the control, and groups surrounding the control, are considered as candidates for
- In the simplest case, the label closest to the control is used as the priorLabel.
- If two labels have the same distance to the control, the priorLabel is determined based upon the following criteria:
- If one label is to the left and the other above the control, the left one is preferred.
- If both levels are to the left of the control, the upper one is preferred.
- If both levels are above the control, the left one is preferred.
- If the closest control is a group control, first all labels within the group are considered according to the rules specified
above. If no labels within the group are eligible, then the caption of the group is used as the priorLabel.