Solved

SSTAB, how do i do this, is it possible?

Posted on 2004-08-24
5
194 Views
Last Modified: 2008-02-01
if it possible to have it tell which tab is clicked? I'm trying to make it change a certain tabs caption if that tab is clicked.  

for example: if ONLY tab(8) is clicked
Form1.SSTab1.TabCaption(7) = "~"

0
Comment
Question by:andyakira
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
Z03niE earned 250 total points
ID: 11888832
If a tab is cliked then it'll be active , right. So I think you just have to find out which tab is active when sstab is clicked.
Maybe you can use something like this :

Private Sub SSTab1_Click(PreviousTab As Integer) ' previous tab is the previous active tab
    MsgBox Form1.SSTab1.Tab                                        ' show the curent active tab
    'maybe you would like to add some code line like
    If Form1.SSTab1.Tab = 8 Then Form1.SSTab1.TabCaption(7) = "~"
End Sub

Hope that help.

0
 

Author Comment

by:andyakira
ID: 11889178
yep that did the trick, thank you.  is tehre a way to make a certain tab text bold?
0
 
LVL 5

Expert Comment

by:Z03niE
ID: 11889201
You can change the font type in the font property.Font size, font type and boldness.
But this action may cause dificulty to differ active and non active tab, cause sstab use bold font to indicate active tab.
0
 

Author Comment

by:andyakira
ID: 11889435
the reason i need this is so the user gets notified of new messages. like if new messages come in, the message tab becomes bold. ;(. but its not possible to do with sstab1 right?
0
 
LVL 5

Expert Comment

by:Z03niE
ID: 11889490
I also think so.
But, try posting a new question regarding this. Who knows other experts have some solutions.
That's what we are here for, isn't it. To find solutions for our IT problem. :)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question