🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #145

Re: VB - need a "transparent" button or picture...

#145
From: Galen Raben
Date: Mon, 10 Aug 1992 16:28
20 lines
1289 bytes
In comp.os.ms-windows.programmer.tools, I wrote:

>Ok, this time I have a question....

>I'm developing a shareware astronomy program using VB.
>I need "transparent" buttons or picture objects in one of my maps (which is 
>a form).  What I mean by "transparent" is that the background needs to show
>thru except for the buttons bitmap.  I know how to make transparent bitmaps
>using API calls, and I can place those as I need, but the problem is I need
>them to respond to a mouse click event (like a button or picture object
>does on a VB form)


This turned out to be simple (I couldn't see the forest for all the trees).
I had gotten locked into BitBlt'ing the picture to the form, hadn't occurred
to me could BitBlt a portion of the form to the picture control!!  

Thanks to all of you who have written/posted suggestions!!
- Galen -
galenr@hpgrla.gr.hp.com
Technical Details
Message-ID: <36720009@hpgrla.gr.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!hpscdc!hplextra!hpfcso!hpgrla!galenr
References: <36720006@hpgrla.gr.hp.com>

Show Full Headers
Complete Article Headers
From: galenr@hpgrla.gr.hp.com (Galen Raben)
Date: Mon, 10 Aug 1992 16:28:49 GMT
Subject: Re: VB - need a "transparent" button or picture...
Message-ID: <36720009@hpgrla.gr.hp.com>
Organization: Hewlett-Packard, Greeley, CO
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!hpscdc!hplextra!hpfcso!hpgrla!galenr
Newsgroups: comp.os.ms-windows.programmer.tools
References: <36720006@hpgrla.gr.hp.com>
Lines: 21