Too many tab pages, start a second row.

  • Thread starter Thread starter Travis
  • Start date Start date
T

Travis

Is there an easy way to make the tab pages "wrap" so instead of getting
a left-right button to navigate among them, once the number of pages
reaches a certain level it automatically starts a second row?

I'm starting with all pages invisible, but they can be turned on with a
check box. When only half are turned on its all quite neat, but when
they're all on its too crowded.

Thanks

Travis
 
Travis said:
Is there an easy way to make the tab pages "wrap" so instead of getting
a left-right button to navigate among them, once the number of pages
reaches a certain level it automatically starts a second row?

I'm starting with all pages invisible, but they can be turned on with a
check box. When only half are turned on its all quite neat, but when
they're all on its too crowded.

TabControls have a MultiRow property on the format page of the property sheet.
 
If you set the "Multi Row" property of the tab control to "Yes" the tab pages
will automatically wrap.
 
Thanks Rick and Mr B

I noticed when it starts the second row the new tabs are very wide, it
looks a little unbalanced. Is there a simple way to get it to put half
the visible tabs onto the second row so its more symmetrical?

Travis
 
Travis said:
Thanks Rick and Mr B

I noticed when it starts the second row the new tabs are very wide, it
looks a little unbalanced. Is there a simple way to get it to put half
the visible tabs onto the second row so its more symmetrical?


You are limited somewhat here.

You can set a fixed width for all of the tabs. This setting is on the property
sheet. If some have label text that is considerably longer than others this
might not work for you.

You can shuffle the index number of the pages to control which pages are on
which row. In many cases this allows you to "balance" the rows quite a bit.

You can add extra "space" characters to tab pages with shorter labels to force
their tabs to be wider. Since trailing blanks are automatically truncated when
entered via the GUI you either have to set the caption via code or "cheat" by
making a label like this...

: Here is a label :
 
Back
Top