🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#79
From: Galen Raben
Date: Thu, 30 Jul 1992 17:11
25 lines
1610 bytes
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)

My current thought is to get the mouse X and Y coordinates on a form-click
and compare to a table of coords in which I've stored the X & Y positions.
This seems like it would work, but I'm looking for some other ideas...

In a related question.  I've heard that some icon drawing programs can
create icons with transparent backgrounds.  Has anyone tried loading one
of these into a VB picture?  Would it get the "transparent" effect I am
looking for?  If anyone could tell me the name of the program and where
I can find it (ftp, CompuServe, BBS etc) I'll try it myself...  I have
IconDraw but (at least the version I have) doesn't have transparency...

Thanks!!!
- Galen -
galenr@hpgrla.gr.hp.com
Technical Details
Message-ID: <36720006@hpgrla.gr.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!sdd.hp.com!hpscdc!hplextra!hpfcso!hpgrla!galenr

Show Full Headers
Complete Article Headers
From: galenr@hpgrla.gr.hp.com (Galen Raben)
Date: Thu, 30 Jul 1992 17:11:24 GMT
Subject: VB - need a "transparent" button or picture...
Message-ID: <36720006@hpgrla.gr.hp.com>
Organization: Hewlett-Packard, Greeley, CO
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!sdd.hp.com!hpscdc!hplextra!hpfcso!hpgrla!galenr
Newsgroups: comp.os.ms-windows.programmer.tools
Lines: 26