Tab Control Caption

G

Guest

I've developed C++ applications where I can change the Caption of the
SELECTED pull-tab to a bold-font. The other captions are regular font. Goal
was to HAVE the active pull-tab [tab control] stand out.

Is there a way to do this using latest version of Access, 2007.

I'm currently only showing when you change the fontbold feature of the
caption - ALL captions of ALL pages are bold. Again, I'd like to simply
change ONLY the selected caption to be bold.
Any help is greatly appreciated.
 
S

Stephen Lebans

You could swap in a Bitmap containing the Text in Bold format for the active
Tab. To give you an idea of what's involved see:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the standard Access TAB
control in order to allow for:

1) Tabs of any color

2) Rotated Text

Notes:

You must set the Tab controls TAB Fixed Height and Width properties

You must set the Individual Tab pages TAG property to whatever color value
you desire.



History

Version 1.6

Added support to allow for the coloring of just the Current/Active TABS and
not the background of the Tab control

Version 1.5

Fixed Bug under Windows NT or higher and Color depth set to 16 bits. Tab.
Added sample Form with minimum implementation code.

Version 1.4

Added code to auto select Tabs as user passes Mouse above the Tab. Final
adjustments to logic to size Bitmaps to exactly match preset dimensions of
Tab pages. Cleaned up code. Just need to remove a few more API declares and
the code is clean!

Version 1.2

Enhanced Color props. Cleaned code some more.

Version 1.1

Added Color props. Added Degree of rotation prop. Cleaned code.

Version 1.0

First release. Basic functionality.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
G

Guest

I will review the .mdb file and technique. This sounds like a solution - I
was thinking of having a "floating" label that would override the tab - and
the text is bold in the label control - and I would have the caption of
active tab = vbNullstring - but I encountered other issues. So your approach
of using a bitmap with BOLD text - then bitmap with regular text for the
caption is possible the workaround solution I'm after. I will advise if this
works.

Thank you.

Stephen Lebans said:
You could swap in a Bitmap containing the Text in Bold format for the active
Tab. To give you an idea of what's involved see:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the standard Access TAB
control in order to allow for:

1) Tabs of any color

2) Rotated Text

Notes:

You must set the Tab controls TAB Fixed Height and Width properties

You must set the Individual Tab pages TAG property to whatever color value
you desire.



History

Version 1.6

Added support to allow for the coloring of just the Current/Active TABS and
not the background of the Tab control

Version 1.5

Fixed Bug under Windows NT or higher and Color depth set to 16 bits. Tab.
Added sample Form with minimum implementation code.

Version 1.4

Added code to auto select Tabs as user passes Mouse above the Tab. Final
adjustments to logic to size Bitmaps to exactly match preset dimensions of
Tab pages. Cleaned up code. Just need to remove a few more API declares and
the code is clean!

Version 1.2

Enhanced Color props. Cleaned code some more.

Version 1.1

Added Color props. Added Degree of rotation prop. Cleaned code.

Version 1.0

First release. Basic functionality.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


DavidS said:
I've developed C++ applications where I can change the Caption of the
SELECTED pull-tab to a bold-font. The other captions are regular font.
Goal
was to HAVE the active pull-tab [tab control] stand out.

Is there a way to do this using latest version of Access, 2007.

I'm currently only showing when you change the fontbold feature of the
caption - ALL captions of ALL pages are bold. Again, I'd like to simply
change ONLY the selected caption to be bold.
Any help is greatly appreciated.
 
G

Guest

This version won't run in Access 2007. Do you have a variation of interface
for this version of Access?

Stephen Lebans said:
You could swap in a Bitmap containing the Text in Bold format for the active
Tab. To give you an idea of what's involved see:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the standard Access TAB
control in order to allow for:

1) Tabs of any color

2) Rotated Text

Notes:

You must set the Tab controls TAB Fixed Height and Width properties

You must set the Individual Tab pages TAG property to whatever color value
you desire.



History

Version 1.6

Added support to allow for the coloring of just the Current/Active TABS and
not the background of the Tab control

Version 1.5

Fixed Bug under Windows NT or higher and Color depth set to 16 bits. Tab.
Added sample Form with minimum implementation code.

Version 1.4

Added code to auto select Tabs as user passes Mouse above the Tab. Final
adjustments to logic to size Bitmaps to exactly match preset dimensions of
Tab pages. Cleaned up code. Just need to remove a few more API declares and
the code is clean!

Version 1.2

Enhanced Color props. Cleaned code some more.

Version 1.1

Added Color props. Added Degree of rotation prop. Cleaned code.

Version 1.0

First release. Basic functionality.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


DavidS said:
I've developed C++ applications where I can change the Caption of the
SELECTED pull-tab to a bold-font. The other captions are regular font.
Goal
was to HAVE the active pull-tab [tab control] stand out.

Is there a way to do this using latest version of Access, 2007.

I'm currently only showing when you change the fontbold feature of the
caption - ALL captions of ALL pages are bold. Again, I'd like to simply
change ONLY the selected caption to be bold.
Any help is greatly appreciated.
 
D

Douglas J. Steele

AFAIK, Stephen hasn't started building interfaces in Access 2007 format yet.

However, what exactly do you mean by "won't run"? Are you getting an error
message? If so, what's the error?

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


DavidS said:
This version won't run in Access 2007. Do you have a variation of
interface
for this version of Access?

Stephen Lebans said:
You could swap in a Bitmap containing the Text in Bold format for the
active
Tab. To give you an idea of what's involved see:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the standard Access TAB
control in order to allow for:

1) Tabs of any color

2) Rotated Text

Notes:

You must set the Tab controls TAB Fixed Height and Width properties

You must set the Individual Tab pages TAG property to whatever color
value
you desire.



History

Version 1.6

Added support to allow for the coloring of just the Current/Active TABS
and
not the background of the Tab control

Version 1.5

Fixed Bug under Windows NT or higher and Color depth set to 16 bits. Tab.
Added sample Form with minimum implementation code.

Version 1.4

Added code to auto select Tabs as user passes Mouse above the Tab. Final
adjustments to logic to size Bitmaps to exactly match preset dimensions
of
Tab pages. Cleaned up code. Just need to remove a few more API declares
and
the code is clean!

Version 1.2

Enhanced Color props. Cleaned code some more.

Version 1.1

Added Color props. Added Degree of rotation prop. Cleaned code.

Version 1.0

First release. Basic functionality.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


DavidS said:
I've developed C++ applications where I can change the Caption of the
SELECTED pull-tab to a bold-font. The other captions are regular font.
Goal
was to HAVE the active pull-tab [tab control] stand out.

Is there a way to do this using latest version of Access, 2007.

I'm currently only showing when you change the fontbold feature of the
caption - ALL captions of ALL pages are bold. Again, I'd like to simply
change ONLY the selected caption to be bold.
Any help is greatly appreciated.
 
G

Guest

No error message - just that the pull-tabs won't color the background for
Access 2007 release.

I did get this to work for Access 1997 version.

Douglas J. Steele said:
AFAIK, Stephen hasn't started building interfaces in Access 2007 format yet.

However, what exactly do you mean by "won't run"? Are you getting an error
message? If so, what's the error?

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


DavidS said:
This version won't run in Access 2007. Do you have a variation of
interface
for this version of Access?

Stephen Lebans said:
You could swap in a Bitmap containing the Text in Bold format for the
active
Tab. To give you an idea of what's involved see:
http://www.lebans.com/tabcolors.htm
Tabs.zip is an MDB containing a class to enhance the standard Access TAB
control in order to allow for:

1) Tabs of any color

2) Rotated Text

Notes:

You must set the Tab controls TAB Fixed Height and Width properties

You must set the Individual Tab pages TAG property to whatever color
value
you desire.



History

Version 1.6

Added support to allow for the coloring of just the Current/Active TABS
and
not the background of the Tab control

Version 1.5

Fixed Bug under Windows NT or higher and Color depth set to 16 bits. Tab.
Added sample Form with minimum implementation code.

Version 1.4

Added code to auto select Tabs as user passes Mouse above the Tab. Final
adjustments to logic to size Bitmaps to exactly match preset dimensions
of
Tab pages. Cleaned up code. Just need to remove a few more API declares
and
the code is clean!

Version 1.2

Enhanced Color props. Cleaned code some more.

Version 1.1

Added Color props. Added Degree of rotation prop. Cleaned code.

Version 1.0

First release. Basic functionality.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


I've developed C++ applications where I can change the Caption of the
SELECTED pull-tab to a bold-font. The other captions are regular font.
Goal
was to HAVE the active pull-tab [tab control] stand out.

Is there a way to do this using latest version of Access, 2007.

I'm currently only showing when you change the fontbold feature of the
caption - ALL captions of ALL pages are bold. Again, I'd like to simply
change ONLY the selected caption to be bold.
Any help is greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top