Hello,
what do you mean with 'does not work'? If you are doing following, the text view will remain empty:
var Views::Text txt = new Views::Text;
txt.Visible = true;
txt.Color = #FF0000FF;
txt.String = "";
txt.Font = Resources::FontArial24;
// The view should appear at position 50,50 with 200x100 pixel size
txt.Bounds = <50,50,250,150>;
Add(txt, 0);
This is because every time the above code is executed a new instance of a text view is added. If there was already an instance added in the preceding step, this instance will not be affected -> it will still show its old text.
Is there a particular reason why you want to create the text view programmatically? Usually you can compose the GUI 'visually'. In this manner its is simple to access and modofy the properties of existing views. If it is essential to create the view dynamically, store the view within a variable and next time when you want to change the text access the view via this variable.
Best regards
Paul Banach