Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any Idea about Buttons

Status
Not open for further replies.

jurgen

Programmer
Feb 8, 2001
209
BE
Hi,

Is it possible in access to create a button with an icon and a text in it, like delphi and VB ?

And if it's possible to let it look like the one in Internet Explorer ?

Thnkx for your time

JJ
 
You can create the button with no text on it (maybe a " ") and then lay a bitmapped image over top of it. I haven't tried it, but that is what I have seen here and in books. Other than that, I do not believe there is any way through Access (other than third party software).

Hope that helps... Terry M. Hoey
 
JJ,

The bad news...
When it comes to customizing command buttons, Access doesn't give you a lot of choices. They probably want to keep the Windows GUI consistent to a point.

The Good news...
You can run the click event on just about any object on your form.

I've often used WordArt or drawing shapes with text from Word or Excel. Copy and paste it onto your form. It becomes an OLEUnbound object (a bitmap). You can write your code on its click event.

To give it more of a Command Button flavor, change the SpecialEffect property to 2 on the MouseDown and back to 1 on the MouseUp.

Another possibility to consider is that you can set a command button's Transparent property to "Yes" and lay it over a picture (or whatever). The click event still runs.


HTH

John
 
Thnx for the response,

I think that I'm going to keep it to the standards, I think if you're going to use bitmaps, your form performance will slow down, and the database size will grow ...

Or am I wrong ?

JJ
 
Depending on the size and number of buttons, I don't think it should hurt the performance too bad. Also, I would link the images instead of storing them in the DB. This will help with the size... Terry M. Hoey
 
Depending on the size and number of buttons, I don't think it should hurt the performance too bad. Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top