Colors + GIFs on command button

Tekime

Registered User.
Local time
Today, 18:14
Joined
Jun 26, 2003
Messages
72
Hiya all,

Been playing around with ways to to apply colors to my command buttons, as well as use GIF's as a command button image. I came up with a really simple solution using the MouseDown and MouseUp events to make a realistic looking command button out of a box and an image.

Just thought I'd share this with you for those interested in doing the same thing. Also if you know of a better way please let me know. :)

I'll attach a small ZIPped MDB with a button using an alternate background color and a GIF as an image. Of course, this isn't a button per say, but rather a rectangle with an image inside. The effects are set properly to make it look like a button.

One thing I would like to know is why the GIF transparency doesn't work. Is there anyway to get the transparency? Or better yet, is there any way to use a PNG with alpha transparency?

Thanks and enjoy :O)
 

Attachments

You can keep the gifs transparency but you have jump through a few hoops to do it.

Open a new word document
Insert the gif into the document [Insert \ Picture \ From File]
Select and copy the picture
Open your access form in design view
Paste the image from the clip board [Edit \ Paste Special \ Picture]
Modify the OLE objects properties [Back Style = Transparent], [Border Style = Transparent]

Check out this thread Rotating Logo? if you want to see the animatedgifs2.zip sample that I posted for how to add animation to your forms.

Also, I was not able to view your sample since I am using Access 97.

HTH
 
Jeebus, that is some hoop jumping. Thank your for the info though, I'll have a look at the link.

I converted to prior Access version (assuming this makes it a '97 database). The ZIP is attached.
 

Attachments

Users who are viewing this thread

Back
Top Bottom