Label Text

Hi at all,

I have a label/button in wich I have to put:
1 - a text
2 - a semitransparent image with ENLARGE property to use it as background

If I make the image enlarge so it overwrite the text.
I wouldn’t put another label above because I have a very complex label-design in wich every label have a specific role.
Exist another way? maybe with using jButton?

Another thing:

If I try to use the jlabel bean and I try to adjust the property"horizontal alignment" an error occur

Marco, winxp java 6 update 19

did you try formatting the text + image as html?

just leave the image property blank and set the html string as text property.

if you develop cross platform, please be aware that MacOS doesn’t handle body bg image.
To avoid this, create a table in html and use the image as the bg image of a cell…

you can call the media lib from html using ‘media:///yourImageName.png’

Hope this helps

Hi Marc!

Yes,very helpful!
I have follow your clear description and it works fine!
It didn’t came in my mind! :)

Thank you for the help

Marco

Hi all!

I have a doubt.
How to put a field in table mode with the appropriate label “label for” depending on whether we are in edit mode or not. both the field and label are made as enable = false.
Let us imagine that both are buttons as I show in the image. tabla_label_enable.png

The problem is as follows.
I have a form in table mode. With two parts body and the header title.

I like is that both the delete button and the Add button in edit mode are enable = false.

What is the problem I’m having?
As shown in the picture I see a button to add up that if I put it visually and enable = false but the add button of the medium puts me visually as enabled = true

And I repeat visually wrong but the behavior is what I hope is that the add button will not let me add that it is what I want.

So just be missing that visually change the appearance.

Sorry this is the image.

On the other side.
The i18n not working. Only if I have in the title_header.
Why is that?
You can see this behavior in the following image.

I cannot reproduce the issues you have in a small example in latest code of 5.1.4. Do you have a sample to illustrate these issues ? Also, would be better to make a separate topic when coming with other issues (different from topic issues).

Hi lvostinar!

First of all, sorry for not writing earlier…

I send you a test solution to see the problems that we have discussed above.

The i18n that doesn´t work in smart Client in WebClient it doesn´t show.

I hope this example helps

test_solution.servoy (329 KB)

OTERO:
Hi lvostinar!

First of all, sorry for not writing earlier…

I send you a test solution to see the problems that we have discussed above.

The i18n that doesn´t work in smart Client in WebClient it doesn´t show.

I hope this example helps

Yes, it helps. The i18n on labelfor tooltip should indeed work (in smart and web) so please open a case about this. The other issue, with disabled image, is due to the fact that labelfor label is not yet scriptable (so you cannot modify it in javascript and then see the changes in header, only initial properties will be taken). There are already issues for this, not sure when/if will get implemented.

Sorry for didn´t answer earlier.

I send a case 306966 and it will be fixed for Servoy 5.2.