Welcome Guest Search | Active Topics | Sign In | Register

TabStrip Text Alignment Options
Ed Arthur
Posted: Tuesday, July 3, 2007 9:09:37 AM
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
eo_support
Posted: Tuesday, July 3, 2007 10:43:22 PM
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.
Ed Arthur
Posted: Wednesday, July 4, 2007 7:40:11 AM
Rank: Newbie
Groups: Member

Joined: 6/11/2007
Posts: 8
Your answer helped me.

The part I was not setting was the padding.

Thanks,


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.