Rank: Newbie Groups: Member
Joined: 6/11/2007 Posts: 8
|
I am creating tabs at runtime.
If I create at design, I can set the vertical alinment of text and it takes.
At runtime I am ....
var xTab:Array [1..4] of Eo.Web.TabItem; begin //create; xTab[1].Text.VerticalAlign:=System.web.UI.WebControls.VerticalAlign.Top;
All other properties that I set are working fine.
It doesn't matter if I set Top, Middle, or Bottom, it always comes out on top. Am I missing something?
Thanks,
Ed
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
hi, Ed Arthur I tried your code, and it worked fine for me. I also tried this to make it more look more clearly:
Code: C#
EO.Web.TabItem item = new EO.Web.TabItem();
item.Text.Html = "Here";
item.Text.HorizontalAlign = HorizontalAlign.Right;
//item.Text.Padding.Top = 10; //You can either use this or VerticalAlign.Botton
item.Text.VerticalAlign = VerticalAlign.Bottom;
item.Height = 100; //To make it look more clear
this.TabStrip1.Items.Add(item);
Try this piece and see if it works for you. Thanks.
|
Rank: Newbie Groups: Member
Joined: 6/11/2007 Posts: 8
|
Your answer helped me.
The part I was not setting was the padding.
Thanks,
|