Solved

Tab Control Colour Change

Posted on 1998-06-30
6
282 Views
Last Modified: 2008-03-10
I have a tab control page in an Access 97 containing approximately 20 pages and I need the tab control text to change colour when a user has clicked and entered that page. When the user exits the database the next user must encounter the same process. This will allow each user to know when they have visited and completed a particular page. Does anyone know how I might be able to apply this?
0
Comment
Question by:djadams
6 Comments
 
LVL 6

Accepted Solution

by:
devtha earned 100 total points
ID: 1976005
On the Gotfocus event of each TAB put in the followin code:

TAB.text I am not sure about the 7 syntax.
text.forecolor = rgb(255,0,0) 'Red color

On lostfocus event
text.forecolor = rgb(0,0,0) 'black



0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1976006
What text do you want to change? Tab control itself doesn't have colour property.
0
 
LVL 12

Expert Comment

by:Trygve
ID: 1976007
In addition to devthas suggestion, you will have to save the users "currentpage" into some table and read from this every time the user opens the form. This way you will be able to present him/her with the page the was active when the form closed down.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:djadams
ID: 1976008
Devtha, there is no Gotfocus or Lostfocus event in the properties for tabs within a control page. Am I looking in the wrong place or have I misunderstood your answer? It is only the Tab label text that needs to change.
0
 
LVL 7

Expert Comment

by:spiridonov
ID: 1976009
You can't change Tab label text.
0
 
LVL 6

Expert Comment

by:devtha
ID: 1976010
I got a workaround.
I am sorry about the forecolor property.
What you can do is make a small bitmap file with text on it and then change the bitmap when you click the tabpage.
page1.picure = "c:\windows\help.bmp"

This will display the bmp as text HELP. on the tab page.

Devtha
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

837 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