Search Tools Links Login

Self updaing transparent / translucent form


Visual Basic 6, or VB Classic

Self updaing transparent / translucent form. It's cthru!
(Expanded on Kevin Tupper's and BoS's work.)

Original Author: Brian Kurtyka

Inputs

cthru - (0-255) - set opacity

Assumptions

- The two "SetWindowPos" routines are cranky. They don't want to accept variables as their sizes. The numbers have to be hard coded in at design time.
- In the "Paint" routine you'll need to rem out some statements depending on whether the form will have a border or not. (It's clearly marked)
- Msimg32.dll & Alphablending.dll are in the zip. If your computer does not have these files you may need to install them before running the project.
- Next I want to include region clipping so I can round off the edges of the window. I have no idea if this will affect the blending routine.

Returns

Make the specified form cthru!

Side Effects

The form flickers slightly while it hides it self to take the clean snapshot of the background.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 114 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD67296132000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 15,091 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.