tab caption width extra space

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In the caption on the tab control I want more space at the end of the
caption. I can enter spaces on the left of the content in the caption. This
works fine. How can I widen the 'bump' with the caption to get space at the
end? This is to look nice. Thanks.
 
Jim B said:
In the caption on the tab control I want more space at the end of the
caption. I can enter spaces on the left of the content in the caption. This
works fine. How can I widen the 'bump' with the caption to get space at the
end? This is to look nice. Thanks.

You have to put a character at the right end or the spaces will be truncated. I
usually go with something like...


.. My wider caption .

It still looks (pretty) good. I've tried other characters, but usually end up
going back to periods as they are the least noticeable.
 
Rick Brandt said:
You have to put a character at the right end or the spaces will be truncated.
I usually go with something like...


. My wider caption .

It still looks (pretty) good. I've tried other characters, but usually end up
going back to periods as they are the least noticeable.

Ok after doing the above several times over the years it just suddenly dawned on
me after my first reply. "I wonder if the trailing spaces wouldn't be truncated
if I applied them in code?"

Sure enough. If you use the Open event of your form to assign the captions in
code you can include trailing spaces and they stay there just fine.

Me.TabControlName("PageName").Caption = " SomeText "
 
Rick Brandt said:
Ok after doing the above several times over the years it just suddenly dawned on
me after my first reply. "I wonder if the trailing spaces wouldn't be truncated
if I applied them in code?"

Sure enough. If you use the Open event of your form to assign the captions in
code you can include trailing spaces and they stay there just fine.

Me.TabControlName("PageName").Caption = " SomeText "
 
Rick Brandt said:
Ok after doing the above several times over the years it just suddenly dawned on
me after my first reply. "I wonder if the trailing spaces wouldn't be truncated
if I applied them in code?"

Sure enough. If you use the Open event of your form to assign the captions in
code you can include trailing spaces and they stay there just fine.

Me.TabControlName("PageName").Caption = " SomeText "
Your second reply was super! This is just the simple solution I was looking
for. I never would have thought of that.
 
Back
Top