🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#132
From: Daryl P Sawders
Date: Mon, 10 Aug 1992 20:33
43 lines
2084 bytes
In article <36720006@hpgrla.gr.hp.com> galenr@hpgrla.gr.hp.com (Galen Raben) writes:
>
>Ok, this time I have a question....
>
>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)
>
*** STUFF DELETED ***
>
>Thanks!!!
>- Galen -
>galenr@hpgrla.gr.hp.com

Galen,

I tried calling MS for some help and their _mini_ help said some stuff that
might help with your situation...  basically they say to create a control 
that isn't visible, then create two pictures, one for the up position and
one for the down position... When the user clicks on your picture they're
in effect clicking on your control... the control would decide which picture
to put based on an XOR  (sample app in the manual for a mail box with the
flag going up then down..)  

For your transparency you should be able to use one of the drawing settings
to accomplish this affect ??  I haven't messed with this yet... but I'd 
appreciate hearing how it goes.  Especially if you come up with a transparent
background icon editor !-)

TIA.

Hope this helps...

   - Daryl -

-- 

----------------------------------------------------------------------------
Daryl P. Sawders,  Asst. Director         Internet:  Daryl@unix.cis.pitt.edu
Systems & Operations, Alumni Development  Bitnet:    Daryl@pittunix 
Technical Details
Message-ID: <4570@blue.cis.pitt.edu.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!pitt.edu!daryl
References: <36720006@hpgrla.gr.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!pitt.edu!daryl
From: daryl+@pitt.edu (Daryl P Sawders)
Newsgroups: comp.os.ms-windows.programmer.tools
Subject: Re: VB - need a "transparent" button or picture...
Summary: Spend money... or use a trick ;-)
Message-ID: <4570@blue.cis.pitt.edu.UUCP>
Date: 10 Aug 92 20:33:19 GMT
References: <36720006@hpgrla.gr.hp.com>
Sender: news+@pitt.edu
Organization: University of Pittsburgh
Lines: 43