SteveMac32
Programmer
I have a program that dynamically adds tabs to the SSTab control, I will not know their captions and so will not know there widths.
The problem is that at the moment the program is running
.TabsPerRow = .TabsPerRow + 1
.Tabs = .Tabs + 1
.TabCaption(.Tabs - 1) = sCaption
So as you can see as the tab count grows the tabs will fall of the end of the control and not be visible due to the ever increasing TabsPerRow and the control not being wide enough.
What I need to do is somehow find the width of the tab and deduct this from the width of the control (held in a variable) when it reaches say <200 then start a new row and start this process all over again.
The only solution I can think of is setting the TabMaxWidth but this will introduce its own errors of truncating some text and possibly a messy uneven look to it.
Thanks in advance
Steve
The problem is that at the moment the program is running
.TabsPerRow = .TabsPerRow + 1
.Tabs = .Tabs + 1
.TabCaption(.Tabs - 1) = sCaption
So as you can see as the tab count grows the tabs will fall of the end of the control and not be visible due to the ever increasing TabsPerRow and the control not being wide enough.
What I need to do is somehow find the width of the tab and deduct this from the width of the control (held in a variable) when it reaches say <200 then start a new row and start this process all over again.
The only solution I can think of is setting the TabMaxWidth but this will introduce its own errors of truncating some text and possibly a messy uneven look to it.
Thanks in advance
Steve