Issue 31747  —   Label text might be positioned differently when Anchor property is used

Status:   Planned for resolution in 10.4.01

Solution available in patch(es):      10.3.02.033    9.7.05.046

Description:

 Summary:
 The text of a label is positioned differently when the Anchor property is
 enabled, the text is not aligned Top/Left, and the associated field has the
 Attach property. Depending on how the label and associated field are painted
 the label text might not be shown at all or might be partially hidden by the
 field.

 Environment:
 +Uniface:
 * Version 9.7.01 (and higher)

 +Operating System:
 * OS independent

 +Database:
 * DBMS independent

 Symptoms:
 In Uniface 9.7.01 the Anchor property was added to the Label. It makes the
 labels move with their associated field when the field has Attach properties
 and the Form is resized. Or when the field is moved using Proc
 $paintedfieldproperties.

 This works fine if the label text is aligned Top/Left. If the text is aligned
 differently the text might not be shown at all or might be partially hidden by
 the associated field if field has an Attach property.

 Consider the following scenario:

 1. A form component MYCOMP contains a label ("Field One") that has a size of 15
 x 1 and an associated field FLD1 that has a size of 25 x 1; the label and the
 field are painted next to each other
 2. The Attach property of FLD1 is set to Hsize
 3. The Ancor property for labels is enabled; e.g.
    .L=ulabel(transparency=off;labelfont=label;InheritColors=true;anchor=on)
 4. The form MYCOMP is executed

 Result:
 If the label is aligned horizontally:
 1. To the left (HAlign=Left) then the label text is shown correctly
 2. To the center (HAlign=Center) then the label text is partially overlaid by
 the field
 3. To the right (HAlign=Right) then the label text is not visible (since it's
 overlaid by the field)

 Similar results can be seen when the label is painted on top of the associated
 field (that has a height > 1) and the label is not vertically aligned to the
 top.

Workaround:

 Only use a anchored label that is aligned to the Top/Left when the associated
 field has the Attach property.

Notes: