Solved

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

Posted on 2004-08-24
5
197 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

856 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