VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Self updaing transparent / translucent form

Brian Kurtyka  (1 Submission)   Custom Controls/Forms/Menus   Visual Basic 3.0   Advanced   Wed 3rd February 2021

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

Inputs
cthru - (0-255) - set opacity

Assumes
- 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.

Rate Self updaing transparent / translucent form (5(5 Vote))

Download Self updaing transparent / translucent form

Self updaing transparent / translucent form Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters