ChrisO
Registered User.
- Local time
- Today, 17:36
- Joined
- Apr 30, 2003
- Messages
- 3,202
G’day all.
You may like the ability to fade in and/or fade out a Form in Access rather than just flipping them on or off.
I originally saw a demo of this on another site but I’m afraid it caused a lockup of A2K.
But what I wanted was fundamentally based on the SetLayeredWindowAttributes API call so the calling of the API got re-written, to some degree.
The code behind each Form is really quite simple but the order in which the code is executed is not. Primarily it requires some knowledge of the order of events in a Form and an understanding that the Timer event will only fire when Access has basically nothing better to do.
This demo also includes runtime error handling but that may mask a problem.
If you want to run without error handling while testing, recommended, then set: -
Public Const conHandleErrors As Boolean = True
to False.
Finally, if you have problems implementing it into your database then look more closely at the Timer event and the order in which the code is called.
Please, if you wish to use this then also take the time to both work on it and understand it. Apart from the quick fix, there is no point in using copy/paste code in any one of your applications.
Only tested in A97 and A2K, but apart from that… have fun experimenting.
20-Oct-2006
The latest version of fading forms is now attached.
Regards,
Chris.
You may like the ability to fade in and/or fade out a Form in Access rather than just flipping them on or off.
I originally saw a demo of this on another site but I’m afraid it caused a lockup of A2K.
But what I wanted was fundamentally based on the SetLayeredWindowAttributes API call so the calling of the API got re-written, to some degree.
The code behind each Form is really quite simple but the order in which the code is executed is not. Primarily it requires some knowledge of the order of events in a Form and an understanding that the Timer event will only fire when Access has basically nothing better to do.
This demo also includes runtime error handling but that may mask a problem.
If you want to run without error handling while testing, recommended, then set: -
Public Const conHandleErrors As Boolean = True
to False.
Finally, if you have problems implementing it into your database then look more closely at the Timer event and the order in which the code is called.
Please, if you wish to use this then also take the time to both work on it and understand it. Apart from the quick fix, there is no point in using copy/paste code in any one of your applications.
Only tested in A97 and A2K, but apart from that… have fun experimenting.
20-Oct-2006
The latest version of fading forms is now attached.
Regards,
Chris.
Attachments
Last edited: