Skip to main content

Hi Freaks

A label is a nice thing espacially when one wants to write a text over a line.
In this case, UnifAce replace the line where ever the text is but the other line os till visible, even is the label is painter bigger then the text.

Now I want to make the text dynamic.
I create a field FLD_A on the formpic with "NED,NPR" and transparency and move it in a corner of the mask.

Next I assign the new text to the label
putitem/id $labelproperties(FLD_A),"Text","My dynamic text"

But what's happend ...
The line does not disappears behind the text but stroke through it.

Then I set "transparency" off for FLD_A and voila the line disappears like any other label.
But now I got a white "stain" on the mask.
And as I did not now (at runtime, on customer site) which background color is set for the mask*), I could not assign a backcolor to the field FLD_A.

*) $widgetproperties only returns a color if you set at before. And it does not work for the old 16 colors


Any ideas 🙂

Ingo




Hi Freaks

A label is a nice thing espacially when one wants to write a text over a line.
In this case, UnifAce replace the line where ever the text is but the other line os till visible, even is the label is painter bigger then the text.

Now I want to make the text dynamic.
I create a field FLD_A on the formpic with "NED,NPR" and transparency and move it in a corner of the mask.

Next I assign the new text to the label
putitem/id $labelproperties(FLD_A),"Text","My dynamic text"

But what's happend ...
The line does not disappears behind the text but stroke through it.

Then I set "transparency" off for FLD_A and voila the line disappears like any other label.
But now I got a white "stain" on the mask.
And as I did not now (at runtime, on customer site) which background color is set for the mask*), I could not assign a backcolor to the field FLD_A.

*) $widgetproperties only returns a color if you set at before. And it does not work for the old 16 colors


Any ideas 🙂

Ingo




Hi, You can try to set z-order and pos of element to hide it behind other elements...

vd


Hi Freaks

A label is a nice thing espacially when one wants to write a text over a line.
In this case, UnifAce replace the line where ever the text is but the other line os till visible, even is the label is painter bigger then the text.

Now I want to make the text dynamic.
I create a field FLD_A on the formpic with "NED,NPR" and transparency and move it in a corner of the mask.

Next I assign the new text to the label
putitem/id $labelproperties(FLD_A),"Text","My dynamic text"

But what's happend ...
The line does not disappears behind the text but stroke through it.

Then I set "transparency" off for FLD_A and voila the line disappears like any other label.
But now I got a white "stain" on the mask.
And as I did not now (at runtime, on customer site) which background color is set for the mask*), I could not assign a backcolor to the field FLD_A.

*) $widgetproperties only returns a color if you set at before. And it does not work for the old 16 colors


Any ideas 🙂

Ingo




Hi Ingo,

IMHO the basic issue here is the possibility to have dynamic text into a label ONLY IF the label is associated to a field. This mandatory condition (I suppose) is because label names can be NOT unique into a form unless they are associated to a field.

I would like to change a text into a label also if it is not associated to a field; if you'are going to open a wish on it let me know: I will support it.

Regards,
Gianni


Hi Freaks

A label is a nice thing espacially when one wants to write a text over a line.
In this case, UnifAce replace the line where ever the text is but the other line os till visible, even is the label is painter bigger then the text.

Now I want to make the text dynamic.
I create a field FLD_A on the formpic with "NED,NPR" and transparency and move it in a corner of the mask.

Next I assign the new text to the label
putitem/id $labelproperties(FLD_A),"Text","My dynamic text"

But what's happend ...
The line does not disappears behind the text but stroke through it.

Then I set "transparency" off for FLD_A and voila the line disappears like any other label.
But now I got a white "stain" on the mask.
And as I did not now (at runtime, on customer site) which background color is set for the mask*), I could not assign a backcolor to the field FLD_A.

*) $widgetproperties only returns a color if you set at before. And it does not work for the old 16 colors


Any ideas 🙂

Ingo




ThanX Vladimir

Tricky but your idea works 🙂

Ingo


Hi Freaks

A label is a nice thing espacially when one wants to write a text over a line.
In this case, UnifAce replace the line where ever the text is but the other line os till visible, even is the label is painter bigger then the text.

Now I want to make the text dynamic.
I create a field FLD_A on the formpic with "NED,NPR" and transparency and move it in a corner of the mask.

Next I assign the new text to the label
putitem/id $labelproperties(FLD_A),"Text","My dynamic text"

But what's happend ...
The line does not disappears behind the text but stroke through it.

Then I set "transparency" off for FLD_A and voila the line disappears like any other label.
But now I got a white "stain" on the mask.
And as I did not now (at runtime, on customer site) which background color is set for the mask*), I could not assign a backcolor to the field FLD_A.

*) $widgetproperties only returns a color if you set at before. And it does not work for the old 16 colors


Any ideas 🙂

Ingo




Hi Ingo,

just have the same need this morning...

Another option is to:
- set field transparency ON
- set label transparency explicitely OFF

Gianni