Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newline on Tab Control

Status
Not open for further replies.

Frink

Programmer
Mar 16, 2001
798
GB
Hallo,

Does anyone know how to get two lines of text on a tab page caption?
ie.
Line1
Line2

It doesn't wrap-around automatically if you make the width shorter, and
"Line1" & vbCrLf & "Line2"
Just shows some 'box' chars in between the text on one line.

I've tried it with vbCr and vbLf on their own, but no luck.
I've also tried using a bitmap, but it doesn't support the colour depth, so the background is the wrong grey.

Any ideas?


- Frink
 
I don't think you can - but you can control the tabl width to a fixed width so that long labels don't take up too much room. Set the control's "Tab Fixed Width" property to something other than 0cm


'ope-that-'elps.



G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Hallo,

Cheers for that, that's what I was doing, with four tabs on 2 rows, but I thought it would look less confusing with a single row of four tabs.

Never mind eh?

- Frink
 
Frink,

Just an FYI

If you do want two lines on a tab label, using the Chr(13) & Chr(10) on the form's load event works. You have to set the Tab Fixed Height to something that will let the user see the second line.


Code:
tpg02.Caption = "First Line" & Chr(13) & Chr(10) & "second Line"


HTH



John

Use what you have,
Learn what you can,
Create what you need.
 
Hallo,

Cheers for that John, but that doesn't work in the version of Access I'm using (2000).
They must have fixed it in later versions. What version are you using?

Does that also mean that they've fixed it so you can have more than 16 colours in a tab page caption image?

- Frink
 
It doesn't work in my Access 2002 either.

:-(

G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top