Label Text not Appearing in ContainerControl

I have created a custom container control with a rectangle and a label. I want it to work like a progress bar that changes colour according to values. I have done this using the width of the rectangle. This is working fine. How ever the label displaying the percentage only shows if the rectangle is where the text is displayed.

Does anyone have any ideas how to fix this.

Thanks in advance.

Make the Label multiline.This is an old bug.

I was just testing this for @Trevor Campbell , and I have to disagree Michel. Even with the label set to multiline, it gets hidden. (tested on Windows).
But it does work if you do a “Label1.Refresh” Testproject

Thanks Joost. One can also use a WebCanvas.

[quote]I was just testing this for @Trevor Campbell , and I have to disagree Michel. Even with the label set to multiline, it gets hidden. (tested on Windows).
But it does work if you do a “Label1.Refresh” Testproject [/quote]

Thanks. That solved the issue.