473,804 Members | 3,271 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A2K - possible to have fading colour effect on labels or textboxes?

Don't know if any of you chaps use www.basecamphq.com (a smart project
management tool) but when you post a message up the entire post is
highlighted in yellow, then fades until its disappears and you are left with
the normal black text on a white background.

It really is rather smart and I was wondering if something like that was
possible in Access. Probably not but it would be nice.

I've taken the liberty of posting up a very small video file at

http://www.gigashare.com/files/embed...h%20effect.avi

It's only 316k. And the quality isn't very good but you can just about see
what happens after the post is made the colour change comes into effect.

thanks
Martin
Nov 13 '05 #1
1 3166
On Sun, 17 Jul 2005 18:21:22 +0100, "Deano" <de***@mailinat or.com> wrote:
Don't know if any of you chaps use www.basecamphq.com (a smart project
management tool) but when you post a message up the entire post is
highlighted in yellow, then fades until its disappears and you are left with
the normal black text on a white background.

It really is rather smart and I was wondering if something like that was
possible in Access. Probably not but it would be nice.

I've taken the liberty of posting up a very small video file at

http://www.gigashare.com/files/embed...h%20effect.avi

It's only 316k. And the quality isn't very good but you can just about see
what happens after the post is made the colour change comes into effect.

thanks
Martin

you could use a timer with a form containing code similar to that below

Option Compare Database
Option Explicit

Dim myred&
Dim mygreen&
Dim myblue&

Private Function fadecolour() As Long
myred = addone(myred)
mygreen = addone(mygreen)
myblue = addone(myblue)
fadecolour = RGB(myred, mygreen, myblue)
End Function

Private Sub setcolour(ByVal r&, ByVal g&, ByVal b&)
myred = r
mygreen = g
myblue = b
End Sub

Private Function addone(ByVal x&)
If x >= 255 Then
addone = 255
Else
addone = x + 1
End If
End Function

Private Sub Form_Timer()
Dim x&, y&
x = Text0.BackColor
y = fadecolour()
If x = y Then
Form.TimerInter val = 0
Else
Text0.BackColor = y
End If
End Sub

Private Sub Text0_AfterUpda te()
Text0.BackColor = RGB(255, 255, 0)
setcolour 255, 255, 0
Form.TimerInter val = 10
End Sub
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

39
3339
by: Mark Johnson | last post by:
It doesn't seem possible. But would the following also seem a violation of the general notions behind css? You have a DIV, say asociated with class, 'topdiv'. Inside of that you have an anchor (and whatever it contains), associated with class, 'a'. Somewhere else in, 'topdiv', there is a span or element (containing whatever), associated with class, 'b'.
4
5783
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
3
1793
by: hypnotizes | last post by:
Has anyone seen the nice fading effect that involves one page, doing a fading transistion into another when you click on the link? Im trying to find the code for this effect. Any help!? An example of this that Ive found was at the following site: http://www.sensationalstaycee.com/welcome.htm Just click on any of the sections, and you will see how one page fades into another.
51
12255
by: madsgormlarsen | last post by:
I can not get hover effect on a TD to work in IE, it seams you can not have a hover on a td in IE? I have treid this body.section-2 td.current, body.section-2 td.submenu, body.section-2 td.bredtsubmenumellemrumhojre, body.section-2 td.bredtsubmenumellemrumvenstre {
0
387
by: Deano | last post by:
Don't know if any of you chaps use www.basecamphq.com (a smart project management tool) but when you post a message up the entire post is highlighted in yellow, then fades until its disappears and you are left with the normal black text on a white background. It really is rather smart and I was wondering if something like that was possible in Access. Probably not but it would be nice. I've taken the liberty of posting up a very small...
9
408
by: kai | last post by:
Hi, All I create an ASP.NET page, it contains FirstName textbox and LastName textbox. I setup "enableViewState=false" in page directive. When I enter data in FirstName and LastName textbox, after I refresh the page or go to different page and come back to the same page, I find data entered in FirstName and LastName textbox are still there. I think after setup "enableViewState=false" , we are not suppose to see data in the textbox...
6
7050
by: Joe | last post by:
I want to fade a color to another color in a user control. Actually the color is the BackColor of the User control. What's the easiest way to do this? Thanks, Joe
5
9398
iknc4miles
by: iknc4miles | last post by:
Hi all, How would I go about making an array of controls such as textboxes for Windows Forms Programming using C++ on VC++ .NET 2003? I've tried porting the C# code from this site, but either I'm not a very good programmer or it doesn't work. Do I need to create a class for it? I don't need to dynamically alter the number of textboxes, I just need to be able to reference each text box by an index number. - iknc4miles
2
1852
by: Freightliner | last post by:
Hi, this script here displays a fading text message. I would like to display 3 different messages, let's say "Fading text 1", "Fading text 2", "Fading text 3". Also, is there a way to make it work under FireFox too? Thank you very much for help
0
9587
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.